Need some help on if $rtttl >50

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GK
Forum Commoner
Posts: 51
Joined: Sat Jun 07, 2003 2:58 pm
Contact:

Need some help on if $rtttl >50

Post 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?
User avatar
delorian
Forum Contributor
Posts: 223
Joined: Sun May 04, 2003 5:20 pm
Location: Olsztyn, Poland

Post 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";
}
GK
Forum Commoner
Posts: 51
Joined: Sat Jun 07, 2003 2:58 pm
Contact:

Post by GK »

i think thats it

let me try

Thanks a lot!
Post Reply