Hello
how to get in between characters of a string!
$variable_A = "Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However should you forget your password you can request a new one which will be activated in the same way as this account."
i want to get the characters (string) between However and which
Need to get this "should you forget your password you can request a new one"
how to do such a thing?
Get characters in between 2 strings
Moderator: General Moderators
Re: Get characters in between 2 strings
You will need a full php script called forgot password.
Code: Select all
<?
class Forgot_password extends model
{
function lost_pass()
{
//ways to retrieve lost pass
}
}
?>Re: Get characters in between 2 strings
he was asking
There are several ways in accomplishing what you want to do.
Try some of this or combination of functions
pregmatch
strpbrk
strpos
substr
NOT what he needs for script.Need to get this "should you forget your password you can request a new one"
There are several ways in accomplishing what you want to do.
Try some of this or combination of functions
pregmatch
strpbrk
strpos
substr
-
cavemaneca
- Forum Commoner
- Posts: 59
- Joined: Sat Dec 13, 2008 2:16 am
Re: Get characters in between 2 strings
ddragas wrote:he was askingNOT what he needs for script.Need to get this "should you forget your password you can request a new one"
There are several ways in accomplishing what you want to do.
Try some of this or combination of functions
pregmatch
strpbrk
strpos
substr
I think he won't stop posting new topics until someone writes his code for him