cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
variabili.php
  variabili
  • il nome inizia con $ ed � case sensitive
  • si creano con un'assegnazione
  • il tipo � automatico
  • le conversioni sono automatiche
  • sono consentite variabili dinamiche (variabili di variabili)
  • <? $variabile="questa � la mia variabile"; echo $variabile ?>

  • <? $numero=3000+528; $numero++; echo $numero; ?>

  • <? $nome="Giorgio"; $dita=10; $tutte=$dita*2;
    echo "$nome ha $dita dita, anzi $tutte"; ?>

  • <? $nome="Giorgio"; $$nome="Fontana"; echo "$nome $Giorgio."; ?>

  array

  • $fruit[0] = 'banana'; $fruit[1] = 'papaya';
    $favorites['animal'] = 'turtle'; $favorites['monster'] = 'cookie';

    se non si indica l'indice, PHP accoda; la riga seguente equivale alla prima:
    $fruit[] = 'banana'; $fruit[] = 'papaya';
  • array multidimensionali
    $people['David']['shirt'] = 'blue'; $people['David']['car'] = 'minivan';
    $people['Adam']['shirt'] = 'white'; $people['Adam']['car'] = 'sedan';
  • istruzioni abbreviate
    $fruit = array('banana','papaya');
    $favorites = array('animal' => 'turtle', 'monster' => 'cookie);
    $people = array (
    'David' => array('shirt' => 'blue', 'car' => 'minivan'),
    'Adam' => array('shirt' => 'white', 'car' => 'sedan'));
  • funzione count()
    count($array);
  • funzione implode()
    implode($array,",");
  • funzione each()
    while (list ($key, $val) = each ($array)) { echo "$key => $val; }
    <? $fruit = array('banana','papaya','kiwi'); ?>
    <? print count($fruit); ?>

    <? $T = implode($fruit,","); print $T ?>

    <while (list ($key, $val) = each ($fruit)) { echo "$key => $val, "; }