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
Explain how can we execute a php script using command line?
How to redirect https to http url and vice versa in .htaccess?
How check variable is set or not in php?
How does php sessions work?
Which software is used to run php programs?
How to retrieve the original query string?
What does $_env mean?
What is lazy loading in php?
Is facebook still written in php?
How php statement is different from php script?
Will react hooks replace redux?
Is strcmp case sensitive?
How to replace a text in a string with another text in php?
What are different types of Print Functions available in PHP?
Xplain is it possible to use com component in php?