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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.