Jump to content

[SOLVED] explode with limit


kev wood

Recommended Posts

i want to know if the limit on the explode can be defined by a variable.  the code is normally written out in this way

 

$exploded_friends = explode(' ', $friends, 3);

 

what i want to know if it can be written out like this

 

$exploded_friends = explode(' ', $friends, $limit);

 

with $limit being set before the explode function has been executed.

Link to comment
https://forums.phpfreaks.com/topic/107978-solved-explode-with-limit/
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.