|
Posted by frizzle on 10/02/05 23:03
Hi there,
i want to build a function to create layout parts.
It has to create tables.
What i want now is to have the following function:
function doTable($state, $width, $height);
{
echo ($state === 1)? '<table width="'.$width.'"
height="'.$height.'"><tr><td>' : '</td></tr></table>'
};
(extremely simlified)
And call it this way:
doTable(1, 350, 400);
echo 'table content';
doTable(0);
Can/How do i handle the 'missing variables' in the second 'doTable()'?
Thanks in advance!
Greetings Frizzle.
Navigation:
[Reply to this message]
|