Page 1 of 1

Need some help on if $rtttl >50

Posted: Sat Jun 21, 2003 8:46 am
by GK
Hi there


i got an page that holds the variable $rtttl
Now i want to display a image with text when $rtttl has more then 50 caracters and nothing a picture with text when it has less

How do i do this?

Posted: Sat Jun 21, 2003 8:49 am
by delorian
I don't realy understand what you are up to, but that can be it.

Code: Select all

if(strlen($rtttl)>50) {
echo "what you want";
} else {
echo "what you want";
}

Posted: Sat Jun 21, 2003 8:53 am
by GK
i think thats it

let me try

Thanks a lot!