Announcement

Collapse
No announcement yet.

header code in vb

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • chrispadfield
    started a topic header code in vb

    header code in vb

    this is a snippet from config.php

    PHP Code:
    if (!$header) {
      eval(
    "\$header = \"".gettemplate('header')."\";");
    } else {
      eval(
    "\$header .= \"".gettemplate('header')."\";");

    i am trying to work out the point of it. It is saying:

    - if $header is already set with something, then add the header template to header. if it is not set then make header = header.

    Thing is i can't understand the point of it, what is the practical, speed etc difference between what is above and simply

    PHP Code:
    eval("\$header .= \"".gettemplate('header')."\";"); 
    is it the case that

    PHP Code:
    $x "a"
    is faster than

    PHP Code:
    $x .= "a"
    ?

Related Topics

Collapse

Working...
X