Jump to content

Limiting the size of variable responce


DrTrans

Recommended Posts

 

What I'm trying to do is this:

 

$text = "this is just a bunch of random text";

 

$stext = "substr('$text', 10);

 

echo " $stext";

 

 

i want $stext to only give me the first 10 characters of the original string. I dont know if the substr function would do this trick? any assistance I'm sure its simple

Link to comment
https://forums.phpfreaks.com/topic/251356-limiting-the-size-of-variable-responce/
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.