NYCPHP Meetup

NYPHP.org

[nycphp-talk] 'In and out' of php

Mark Armendariz nyphp at enobrev.com
Sat Jan 24 13:53:06 EST 2004


 
> <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.

Ok, would...

echo "<td><a href=\"index.php?page=$_GET['page']&sort=id\">ID</a>";

...and...

echo '<td><a href="index.php?page=' . $_GET['page'] . '&sort=id">ID</a>';

...be interpreted the same?
Are any of the above interpreted faster, or are they all seen as the exact
same thing by php?



Thanks for the input

Mark





More information about the talk mailing list