barniegilly Posted September 3, 2011 Share Posted September 3, 2011 hi silly little question but if I want to bracket something inside PHP how do I do it eg my code is <th class="alignright"><?php echo $ass_descrip; ?> (<?php echo $ass_accro ; ?>) <?php echo FindTypeName ($type_id); ?></th> printing out British Eventing (BE) But the brackets at the moment are outside the PHP I want to put a conditional on it and include the brackets inside my conditional statement.? Link to comment https://forums.phpfreaks.com/topic/246350-how-do-i-put-html-brackets-inside-php/ Share on other sites More sharing options...
voip03 Posted September 3, 2011 Share Posted September 3, 2011 $hello="Hello Freaks"; echo "(" . $hello .")"; Link to comment https://forums.phpfreaks.com/topic/246350-how-do-i-put-html-brackets-inside-php/#findComment-1265069 Share on other sites More sharing options...
waynew Posted September 3, 2011 Share Posted September 3, 2011 You should keep the brackets outside of PHP. Link to comment https://forums.phpfreaks.com/topic/246350-how-do-i-put-html-brackets-inside-php/#findComment-1265090 Share on other sites More sharing options...
voip03 Posted September 3, 2011 Share Posted September 3, 2011 waynewex You should keep the brackets outside of PHP. Please let me know that Why you should keep the brackets outside of PHP? Link to comment https://forums.phpfreaks.com/topic/246350-how-do-i-put-html-brackets-inside-php/#findComment-1265091 Share on other sites More sharing options...
waynew Posted September 5, 2011 Share Posted September 5, 2011 waynewex You should keep the brackets outside of PHP. Please let me know that Why you should keep the brackets outside of PHP? Because if a non-coder wants to carry out work on a redesign, he/she doesn't want to/know how to mess around with PHP. Link to comment https://forums.phpfreaks.com/topic/246350-how-do-i-put-html-brackets-inside-php/#findComment-1265583 Share on other sites More sharing options...
voip03 Posted September 5, 2011 Share Posted September 5, 2011 hmmm thats a good point *puts thumbs up* Link to comment https://forums.phpfreaks.com/topic/246350-how-do-i-put-html-brackets-inside-php/#findComment-1265587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.