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 the visibility of the property or method?
Is age nominal or ordinal?
What are the Formatting and Printing Strings available in PHP?
Tell me how do I escape data before storing it into the database?
What is constructors and destructors?
What is php regular expression?
What are php filters?
How to remove white spaces from the beginning and/or the end of a string in php?
Why sessions are used in php?
What is empty () in php?
What are the methods useful for method overloading?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
Explain how we can get the number of elements in an array?
How can you pass a variable by reference?