Magic! Will try it tonight & let you know.feyd wrote:Code: Select all
substr($value,0,strlen($value) - 2);
Thanks Feyd!!!
Magic! Will try it tonight & let you know.feyd wrote:Code: Select all
substr($value,0,strlen($value) - 2);
Aha. Thanks.feyd wrote:[php_man]substr[/php_man]
Code: Select all
<?php
if
strlen($value)>6
$searchvalue = substr("$value", 0, 5);
else
$searchvalue = substr("$value", 0, 4);
?>