[nycphp-talk] 'In and out' of php
Jose Villegas
jv_nyphp at duikerbok.com
Sat Jan 24 13:40:35 EST 2004
From what I understand, the whole page needs to be parsed into the
equivalent of php statements. If I'm correct, this:
<td><a href="index.php?page=<?= $_GET['page'] ?>&sort=id">ID</a></td>
needs to be interpreted into something like this:
echo('<td><a href="index.php?page=');
echo($_GET['page']);
echo('&sort=id">ID</a></td>');
so there isn't really any "going in and out" of php.
Jose
On Jan 24, 2004, at 1:04 PM, Chris Snyder wrote:
> Mark Armendariz wrote:
>
>> <td><a href="index.php?page=<?= $_GET['page'] ?>&sort=id">ID</a></td>
>> <td><a href="index.php?page=<?= $_GET['page']
>> ?>&sort=title">Title</a></td>
>>
>> So my question: Is going 'in and out' of php as such expensive? Does
>> it
>> take more memory or added processing?
>>
> Since this is how PHP was originally designed to be used, my guess is
> no.
>
> I've always assumed that PHP was optimizing those somehow, but I don't
> really have any proof...
More information about the talk
mailing list