Str replace php mysql -


अगर मैं एखो $ test = 'test text' यह मेरी वेबसाइट पर & Lt; i & gt; टेस्ट टेक्स्ट & lt; / i & gt; । मैं str_replace , या कुछ और का उपयोग कैसे कर सकता हूं, ताकि आउटपुट केवल उस स्ट्रिंग के पहले 3 वर्ण दिखाए?

<पूर्व> गूंज उपस्ट्रॉस्ट ($ परीक्षण, 0, 3);

सबस्ट्रिंग वह शब्द है जिसे आप ढूंढ रहे हैं।

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

python - 'NoneType' object is not callable using 'find_all' in BeautifulSoup -