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
What are some of the advanced features of php?
What is the meaning of a persistent cookie?
What is isset in php?
Explain what does the function get_magic_quotes_gpc() means?
How do you check is php not empty?
What is difference between sql and php?
Does jwt protect against csrf?
How can we submit a form without using submit buttons?
What is the name of the scripting engine that powers PHP?
How do you end a session in php?
What is the output of the following php code?
Is not null mysql?
What is final class and final method?
How is session id stored in browser?
What is the best website to learn php?