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
How to replace a text in a string with another text in php?
What happens when submit button is clicked?
What are the Advantages and Application Areas of PHP?
Is overloading possible in php?
How to define a function with any number of arguments?
Explain what is the main difference between require() and require_once()?
List types of array are available in php?
How many types of errors in php?
What exactly is PHP?
Why do we use query?
Where to put php files in apache server?
Explain the installation of PHP on UNIX systems?
How to create a public static method in PHP?
What is the use of nl2br() in php?
How to store the uploaded file to the final location?