Jump to content
php.lv forumi

Recommended Posts

Posted (edited)
kad palaid

 

$i=0;

while(++$i<=5)

print  $i;

 

ekraana malaa paraadaas "12345" kaa dariit, lai "12345" paraadiitos ekraana viduu?? :unsure:

16830[/snapback]

 

<div align="center">teksts_kas_vidū_te</div>

Edited by Kraz
Posted (edited)

pieturēsimies pie css specifikācijas

<?
$i=0;
while(++$i<=5)
echo '<div style="text-align:center">'.$i.'<div>';

Edited by hu_ha
Posted
bet man vajadzeetu lai buutu 12345 vienaa rindaa ekraana viduu  :(

16832[/snapback]

<?

$rez='';
$i=0;
while(++$i<=5)
$rez.=$i;
?>
<div style="text-align:center"><?=$rez;?><div>

×
×
  • Create New...