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 / nadeem sartawi

Write a PHP function that Returns the part of string
specified by the start and length parameters.

Hint 1: the function accepts three parameters.
Parameter:Description
string :Required. Specifies the string to return a part of
start :Required. Specifies where to start in the string
length :Optional. Specifies the length of the returned
string. :Default is to the end of the string.
Hint 2: YOU ARE NOT ALLOWED TO USE THE "substr" FUNCTION.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are constructor and destructor in PHP?

1092


Is strcmp case sensitive?

956


What is inheritance in php? How many types of inheritance supports php?

991


What is php call function?

931


What does echo mean in php?

1021


Tell me what is the use of isset() in php?

1063


What are the difference between overloading and overriding in oops?

1012


What is the function mysql_pconnect() useful for?

942


Explain soundex() and metaphone().

1018


What is Apache's configuration file typically called?

1125


How to check an key is exists in array?

1078


How to declare an array in php?

1084


What is the function to count elements in an array in PHP?

1086


Explain $_FILES Superglobal Array?

1026


What is a php web application?

999