n1concepts Posted June 23, 2011 Share Posted June 23, 2011 Hi, I'm new to PHP and have no knowledge of Zend framework and asking for clarification on this line of code: <?=$this->formValues['capture']?> My question: what purpose is the equal sign in front of the variable serving in this line of code? Note: this line of code is apart of a textbox fied (see full line below): <input type="text" name="tracknum" value="<?=$this->formValues['tracknum']?> ---- I need to: 1. Change the form so there are THREE textboxes - instead of the one as current. 2. Append the captured data (3 integers from 1st field, then 4 from the second and third text box) back together to make new variable holding 11 digits 3. Then pass that (11 digit) variable back into this field <?=$this->formValues['tracknum']?> so backend scripts can grab and process. Again, I'm not understanding the equal sign in from the variable; what's the purpose/function? Quote Link to comment https://forums.phpfreaks.com/topic/240188-need-clarification-on-syntax/ Share on other sites More sharing options...
gristoi Posted June 23, 2011 Share Posted June 23, 2011 the ?= is the shorthand version of: <?php echo $this->formValues['capture']?> it replaces the need for the php and echo syntax Quote Link to comment https://forums.phpfreaks.com/topic/240188-need-clarification-on-syntax/#findComment-1233751 Share on other sites More sharing options...
n1concepts Posted June 23, 2011 Author Share Posted June 23, 2011 Figured something simple - thanks for explaining! Quote Link to comment https://forums.phpfreaks.com/topic/240188-need-clarification-on-syntax/#findComment-1233752 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.