Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are some of the advanced features of php?

1000


What is the meaning of a persistent cookie?

1130


What is isset in php?

993


Explain what does the function get_magic_quotes_gpc() means?

934


How do you check is php not empty?

1008


What is difference between sql and php?

1075


Does jwt protect against csrf?

921


How can we submit a form without using submit buttons?

965


What is the name of the scripting engine that powers PHP?

1243


How do you end a session in php?

1089


What is the output of the following php code?

938


Is not null mysql?

976


What is final class and final method?

1069


How is session id stored in browser?

1006


What is the best website to learn php?

987