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
Does php support inheritance?
What are php string functions?
How will you calculate days between two dates in PHP?
Which function is used to strip whitespace?
What is the w3c?
What is api example?
What are the disadvantages of php?
What is namespaces in PHP?
What are the encryption techniques in php?
How is the ternary conditional operator used in php?
Is php still used?
What is php stack?
How many types of inheritances used in php and how we achieve it.
What does $_server means?
How to find current date and time?