Jump to content

syntax question


182x

Recommended Posts

heres a few

<?php echo $rowU1['username'].", ".$rowU1['firstName']; ?>

<?php echo "{$rowU1['username']}, {$rowU1['firstName']}"; ?>

<?php
echo $rowU1['username'];
echo ", ";
echo $rowU1['firstName'];
?>

<?php
$un =$rowU1['username']; 
$fn =$rowU1['firstName'];
echo "$un, $fn"; ?>

Link to comment
https://forums.phpfreaks.com/topic/60995-syntax-question/#findComment-303502
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.