Jump to content

trim() question


frank_solo

Recommended Posts

Trim does not work on this. Am I doing it wrong? Thanks

<?php $profile = trim("".$result['profilepic']."");
               $pic = !empty($profile) ? "<img src='http://www.mydomain.co/user/".$result['profilepic']." width='100'>" : "<img src=\"http://www.mydomain.co/images/avatar.jpg\" width='100'>";?>
               <? echo $pic; ?>
Link to comment
https://forums.phpfreaks.com/topic/278138-trim-question/
Share on other sites

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.