Interpolating array element values with curly braces : print « Utility Function « PHP
- PHP
- Utility Function
- print
Interpolating array element values with curly braces
<?
$meals['A'] = '$3.95';
$hosts['www.example.com'] = 'web site';
print "{$meals['Walnut Bun']}.";
print "{$hosts['www.example.com']}.";
?>
Related examples in the same category