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 is difference between md5 and SHA256?
Tell me what is the importance of "action" attribute in a html form?
Explain object-oriented methodology in php?
What are the benefits of using queries?
How to insert a line break in php string?
Explain which cryptographic extension provide generation and verification of digital signatures?
What is the difference between apache vs niginx?
Can we learn php without html?
What does type casting mean in php? Explain with an example?
What is htmlentities function in php?
How is it possible to parse a configuration file?
How to protect special characters in query string?
What does mysqli_query return?
Describe PHP error and logging information?
What is the current php version?