Jump to content

[SOLVED] String Manipulation


Kasuke_Akira

Recommended Posts

I have this variable:

 

$str = "4xAura Extraction";

 

I need it to split the string into two separate strings containing this:

 

$split[0]: 4

$split[1]: Aura Extraction

 

I can't use explode(), because that will split it up again if there are x's other than the one that comes after the number.

 

What would be the best way to get this done.  I'm asking because I'm not real good at string manipulation when it comes to mutilating them.  lol

 

Thanks

 

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