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

Tell me which function gives us the number of affected entries by a query?

972


Which is better #define or enum?

916


What is the meaning of symbol '$' in jquery?

999


Who developed php?

934


What is a controller in php?

961


Explain what is the difference between $var and $$var?

950


Why do we use hooks?

866


Why php is used with mysql?

984


When to use get and post request?

968


How cookies are trported from browsers to servers?

978


What does php exit do?

962


What is a php trait?

897


How to include a file code in different files in php?

1051


What is the use of the function htmlentities?

1053


What is php and features of php?

926