Jump to content

[SOLVED] Cut off first 29 letters of a PHP Variable?


alexville

Recommended Posts

http://uk2.php.net/substr

 

<?php

$word="fnffjjfkjfkdlfjklsfjsdklfjklfjerltjritgjreifjeierjmglmgrktgrtYgrtglkrtgOjytrjgirtjgirtgjgt";

echo " <br>current number letters ".strlen($word)."";

$test=strlen(substr($word,29));

echo " <br> number of letters now $test";

echo "<br>result: ".substr($word,29)."";

?>

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.