Jump to content

Need clarification on syntax


n1concepts

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/240188-need-clarification-on-syntax/
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.