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 long do php sessions last?
What is the php function that removes the first element of the array and returns it?
What is ltrim?
What is trait in php?
What is prepare in php?
What is json php?
What is mysql_fetch_row?
How can i execute PHP File using Command Line?
What's the difference between accessing a class method via -> and via ::?
What's the difference between __sleep and __wakeup?
Why many companies are switching their current business language to php? Where php basically used?
Why post method is used in php?
Which MySQL function would you use to select a database?
Do while loops php?
How a variable is declared in php?