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 is php oop?
What are the different ways to login to a remote server?
Is nan in javascript?
Why is php used for web development?
What types of loops exist in php?
Explain what does $_files means?
What are php keywords?
Name some of the functions in php.
explain php variable length argument function.
What is the array in php?
How is it possible to return a value from a function?
How to create and destroy cookies in php?
Do loops php?
How to convert one date format into another in php?
How long do php sessions last?