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
For image work which library is used in php?
How to check an element is exists in array or not in php?
What is the difference between die () and exit () in php?
What is self in php?
What is an anti csrf token?
How many keywords are there in php?
What is encapsulation in php?
What is the use of stripslashes in php?
What is the difference between print() and echo()?
What are the correct and the most two common way to start and finish a PHP block of code?
What is session management php?
Which function would you use to replace a record in a database in php?
Explain what are the different errors in php?
How to create a mysql connection in php?
Can a super () and this () keywords be in same constructor?