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
What are constructor and destructor in PHP?
Is strcmp case sensitive?
What is inheritance in php? How many types of inheritance supports php?
What is php call function?
What does echo mean in php?
Tell me what is the use of isset() in php?
What are the difference between overloading and overriding in oops?
What is the function mysql_pconnect() useful for?
Explain soundex() and metaphone().
What is Apache's configuration file typically called?
How to check an key is exists in array?
How to declare an array in php?
What is the function to count elements in an array in PHP?
Explain $_FILES Superglobal Array?
What is a php web application?