Skip to content

reference:Placeholder variables

Aaron Junker edited this page Apr 10, 2021 · 2 revisions

Placeholder variables

What are Placeholder variables?

Placeholder variables are variables that are used for a short time in a PHP document.

They should have a logic name.

Names

  • $sql
    • Contains an sql code.
  • $dbRes (obsolete: $db_erg)
    • The return value of an mysql_query() function.
  • $row[]
    • Database rows.
  • $code
    • HTML code that get outputed.
  • $i
    • Counter for for loops.

I need more than one placeholder variable.

Just add a number at the end. Like $code3.

Clone this wiki locally