Jump to content

String Split


user4fun

Recommended Posts

You can use the substr() function, and it's negative effects to be more precise.For example:

$VarB = substr($var_string, -5);//Gets the last 5 characters from $var_string$VarA = substr($var_string, 0, -5);//Gets all characters before the last 5 characters from $var_string

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...