Jump to content

[SOLVED] Split() a string?


ballhogjoni

Recommended Posts

Hi,

 

I recieve a response string from my curl script e.g. 'Username:xxxxxxxxxxxxxxx UserID:xxxx' and I want to be able to split it up at the : character and basically put it into a session.

 

Example:

 

$_SESSION['a'] = 'xxxxxxxxxxxxxxx';

$_SESSION['b'] = 'xxxx';

 

I don't want the session variable to include Username and UserID from the original string. I hope that made since.

Link to comment
https://forums.phpfreaks.com/topic/87122-solved-split-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.