NoName.ba Posted April 23, 2010 Share Posted April 23, 2010 Hello! I'm learning PHP I need some help with php sintax so I hope someone will find a minute to help me. Here is explanation what I want to achieve: <?php $myTabs->startTab("TAB TITLE","TAB DESCRIPTION"); ?> Instead of "TAB TITLE" and "TAB DESCRIPTION, I need variable values: _TAB_TITLE _TAB_DESCRIPTION I find out that I can use variable value in HTML with this code: <?php echo _TAB_TITLE; ?> <?php echo _TAB_DESCRIPTION; ?> Thank you. Link to comment https://forums.phpfreaks.com/topic/199485-correct-sintax/ Share on other sites More sharing options...
Ken2k7 Posted April 23, 2010 Share Posted April 23, 2010 There isn't a way to access your tabs via the $myTabs object? I don't know why you want to create constants for them. Seems stupid. If you're going to do that, you may as well just use constants and not use $myTabs. Link to comment https://forums.phpfreaks.com/topic/199485-correct-sintax/#findComment-1047067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.