Linked Questions

5 votes
2 answers
2k views

Possible Duplicate: Opening/closing tags & performance? This is a newbie question, but I could not find a clear answer on the net, so please don't laugh :) Does opening and closing php tags ( &...
webmasters's user avatar
  • 5,879
3 votes
2 answers
466 views

Possible Duplicate: PHP: Opening/closing tags & performance? this is probably a stupid question, but being extremely perfectionist i thought I'd ask just for curiosity: Is there a ...
Marco's user avatar
  • 95
3 votes
1 answer
348 views

Possible Duplicate: Opening/closing tags & performance? I am a big performance guy, and I like to have my code run as efficiently as possible. I don't know if any of you know about liquid ...
user avatar
1 vote
1 answer
53 views

Does going in and out php tags slows down overall execution process ? i mean writing several <?php ?> in the script, when i can write only one to embrace the whole code.
Normand Espinoza's user avatar
2 votes
0 answers
32 views

Is there a performance issue when you open and close multiple PHP tags? For instance this: <tr><td><?= $value ?></td></tr> <tr><td><?= $value ?></...
Nate's user avatar
  • 6,484
7 votes
7 answers
10k views

Possible Duplicate: Why does one often see “null != variable” instead of “variable != null” in C#? This is more a curiosity question, is there any performance difference ...
kamui's user avatar
  • 3,419
0 votes
2 answers
3k views

In my php files, I wonder if the opening and closing tags have a performance impact. ie. <?php echo 'Hello world'; ?> <?php echo 'Hello world'; ?> <?php echo 'Hello world'; ?> &...
rememberlenny's user avatar
1 vote
1 answer
2k views

First off I will say that I am new to Magento but not new to PHP. The question I have is why are there start and stop PHP calls for every line in the template files within Magento and is there a ...
Jay's user avatar
  • 135
1 vote
5 answers
157 views

Consider <a href="<?php echo $url;?>"><?php echo $name;?></a> and compare with <?php echo "<a href=\"{$url}\">{$name}</a>";?> then consider hundreds of ...
Mattis's user avatar
  • 5,116
-2 votes
3 answers
540 views

Which is the fastest: $content = "some html"; <div><?php echo $content?></div> or $content = "some html"; <div><?=$content?></div> ?
CoolStraw's user avatar
  • 5,430
0 votes
1 answer
580 views

On a php web page, in the beginning of the PHP code I declare and set a lot of variables which are not altered during the execution of the script. Each time a user visits the page, the script is ...
abc's user avatar
  • 125
1 vote
3 answers
197 views

Need to perform some logic based on the existence of a record in db. Since this function will be called quite often, I'm wondering if the following can be made more efficient... Also note that the ...
eysikal's user avatar
  • 599
0 votes
2 answers
235 views

Possible Duplicate: Multiple PHP tags Is there a difference between: <?php echo "n" ?> <?php echo "i" ?> <?php echo "g" ?> and <?php echo "t"; echo "i"; echo "t"...
RandomDuck.NET's user avatar
-1 votes
1 answer
206 views

I am building an extention to my site that allows users to favourite posts, I am however having a a problem, I am running this code in my view, <?php if(isset($favourites)) : ?> <?php ...
Udders's user avatar
  • 259
0 votes
1 answer
206 views

I've always wondered: does having a large open and close PHP (i.e. a template) hurt? To clarify: <html> <?php echo $test; ?> <body <?php echo $test2; ?>> <...
Gekkie's user avatar
  • 1,056

15 30 50 per page