Forum Moderators: coopster
I use the var $url to capture a specific URL's.
with that knowledge here is the script
<?php
if (count_chars($url)>100)
{
$title=$url;
$url= 'wwWebmasterWorldebsite.net/...';
}
echo $url
?>
now, this is supposed to return only if the characters are greater than 100 but it returns no matter what the characters are....
Can anyone see what I am going wrong?
Thanks
Wayne
so if
$string = 'webmasterworld'
I can have it output only
webmaster
if I choose.
Do you happen to know of a command that will work for that?
I am pretty sure that I can do that with substr();