Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it L'avatar di tigh
    Registrato dal
    Dec 2007
    Messaggi
    52

    [PHP] nomi di variabili

    mi chiedevo, in php una variabile può avere un nome che è una variabile? :master:


    magari è una domanda stupidissima, nel caso chiedo scusa in anticipo!
    My name is Saul Tigh, I am an officer in the Colonial Fleet. Whatever else I am, whatever else it means, that's the man I want to be. And if I die today, that's the man I'll be.

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2008
    Messaggi
    8
    in che senso?
    ad esempio:
    Codice PHP:
    $array ciao

  3. #3
    Utente di HTML.it L'avatar di tigh
    Registrato dal
    Dec 2007
    Messaggi
    52
    no nel senso che se ho

    Codice PHP:
    $nome pippo 

    posso scrivere una cosa tipo, (sto inventando ma è per rendere l'idea...):

    Codice PHP:
     $($nome) = 
    che vuol dire

    Codice PHP:
     $pippo 
    My name is Saul Tigh, I am an officer in the Colonial Fleet. Whatever else I am, whatever else it means, that's the man I want to be. And if I die today, that's the man I'll be.

  4. #4

  5. #5
    Utente di HTML.it L'avatar di tigh
    Registrato dal
    Dec 2007
    Messaggi
    52
    Originariamente inviato da pictor
    Guida PHP
    figata! grazie
    My name is Saul Tigh, I am an officer in the Colonial Fleet. Whatever else I am, whatever else it means, that's the man I want to be. And if I die today, that's the man I'll be.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.