Jump to content

Search in a string


akshay

Recommended Posts

Hello.

 

How to read in between string with separatation characters... To simplify:

 

Example:

 

 $string="username ^ password ^ email";

$a= //should be equal to text before first ^ in $string, i.e. username
$b= //should be equal to text between first ^ and second ^, i.e. password
$c = // should be equal to text after second ^, i.e. email

 

Is there a way? what about fseek() ?

 

Thank you

 

Link to comment
https://forums.phpfreaks.com/topic/192937-search-in-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.