how to Convert html to php code?

I’ve a sample code here:

  $tbody[] = $row;
  $row = Form::label("year", _("Example") . ":");
  $aux = explode("-", ( !empty($formVar["Example"]) ) ? $formVar["Example"] : '0000-00-00');
  $row .= Form::text("year",
    (intval($aux[0]) != 0) ? intval($aux[0]) : null,
    array('size' => 4)
  );

Output of this above code is like this:

Example:

Here’s my question:

How to convert html code to something like that above php code?

What version is it? Sorry but I’ve no idea how to make it like that. Thank you for your comments.

Thanks

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s