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
Is empty function c++?
What is sql injection in php?
How do you identify independent and dependent variables in regression analysis?
Explain me how to include a file to a php page?
What does $_cookie means?
Can we learn php without html?
What is isset and unset in php?
What is zend studio for?
What is final class and final method?
What is the meaning of a final class and a final method?
What are helpers in php?
Which will start a session?
What is use of mysqli_query in php?
What is the use of mvc in php?
What are the options to transfer session ids?