note 63671 added to language.basic-syntax

From: Date: Tue, 28 Mar 2006 06:27:31 +0000
Subject: note 63671 added to language.basic-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-106801@lists.php.net to get a copy of this message
A continuación muestro lo más básico que te puede servir para empezar con PHP, algo más sencillo todavía que lo listado. arriba... <?php // iniciamos el programa $a = "holla"; // define variable string $var = "ab"; $var .= "cd$a"; // concatena var (finalmente: abcbholla) $var = 'ab$'; //define variable char (finalmente ab$ ) $var = 0; // define variable numerica echo "$var"; // imprime echo "ab" // . "cd"; // tambien imprime abcd print "$var"; // otra forma echo $var; // un metodo mas function hello(){} // crea una funcion function hello($friend){} // crea funcion que recibe parametros hello(); // usa la funcion ?> // terminamos el programa ---- Server IP: 66.163.161.117 Probable Submitter: 200.77.85.226 ---- X-Spam-Status: Yes, hits=7.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HEAD_ILLEGAL_CHARS autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php Edit -- http://master.php.net/note/edit/63671 Del: integrated -- http://master.php.net/note/delete/63671/integrated Del: useless -- http://master.php.net/note/delete/63671/useless Del: bad code -- http://master.php.net/note/delete/63671/bad+code Del: spam -- http://master.php.net/note/delete/63671/spam Del: non-english -- http://master.php.net/note/delete/63671/non-english Del: in docs -- http://master.php.net/note/delete/63671/in+docs Del: other reasons-- http://master.php.net/note/delete/63671 Reject -- http://master.php.net/note/reject/63671 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106801) next »