how to get substring of string without using substr() function in php ????
Answer Posted / dheeraj
Use explode()just notice the following code. here it splits
a string to parts and forms an array. Now u assign the array
element to a string.
<?php
$str = "Hello world. It's a beautiful day.";
print_r (explode(" ",$str));
?>
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Write a php script to get the largest key in an array?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
How to Retrieve the Session ID of the Current Session?
How can you create a session in php?
What is form validation in php?
Why do we use hooks?
How to create a text file in PHP?
How do I clear my browser session?
What is preg_match?
Why does php need server?
Name some of the functions in php.
Why do we use polymorphism in php?
Why php language is used?
What are the rules in creating php variable?
Is jquery better than javascript?