Posted by MS on 11/24/06 14:53
"Michael Fesser" <netizen@gmx.de> wrote in message
news:e79cm2dii8k9q8f1mphv967clvglkcd0ld@4ax.com...
> .oO(MS)
>
> ><?PHP
> >echo "<a href='user_edit.php?id=".$row_dbUsers['id']."'>edit</a>";
> >?>
>
> Any reason why you use concatenation instead of embedding the variables
> directly into the string?
>
> echo "<a href='user_edit.php?id=$row_dbUsers[id]'>edit</a>";
>
> or
>
> echo "<a href='user_edit.php?id={$row_dbUsers['id']}'>edit</a>";
>
No Reason other than my personal preference !!
MS
Navigation:
[Reply to this message]
|