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 singleton pattern in php?
What new features php7 has in store for us?
What is difference between print and echo in php?
Why php is used with mysql?
What are php magic quotes?
Declare a new variable in php equal to the number 3;
What is a session in php?
What is the different between count() and sizeof() in php?
Why does php start with variables?
How is a session id generated?
What is the current php version?
Is rent a variable cost?
Are static variables final?
How is it possible to propagate a session id?
How do functions work?