Articulos PHP
- 2.9 Fecha y Hora en PHP.
- 1 PHP
- 2.7 Enlazar un programas con include.
- 3 PHP junto con MySQL.
- 2 Enunciados if.
Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 128
Articulos Jquery
- 2 Añadiendo elementos a la página con append().
- 1.1 Como utilizar Jquery
- 2.7 Listas desplegables con change()
- 2.8 Valor de una lista desplegable con attr().
- 1.6 El método preventDefault.
Warning: Use of undefined constant jquery - assumed 'jquery' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 137
Articulos CSS
- 1 Hojas de estilo CSS.
- 1.2 Estructura de los estilos CSS.
- 1.1 Como incluir estilos en una página web.
Warning: Use of undefined constant css - assumed 'css' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 146
Articulos Mysql
- 1.3 Valor más alto de una columna.
- 3.8 Cuentas de usuario MySQL
- 4 Creando cuentas MySQL.
- 3.4 Creando una tabla con CREATE TABLE.
- 2.3 Seleccionando registros con NOT IN.
Warning: Use of undefined constant mysql - assumed 'mysql' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 155
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 199
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 220
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 220
1.4 Trabajar con números en PHP.
En PHP podemos realizar las operaciones matemáticas más habituales, como la suma, resta, multiplicación y división, para ello simplemente debemos saber los operadores:
- + para la suma
- - para la resta
- * para la multiplicación
- / para la división
Ahora es importante recordar que en caso de querer realizar una operación muy extensa podemos utilizar (), para hacer distinguir las operaciones que deseamos que se realicen primeramente, de esta forma:
<?php
$operacion;
$operacion=1+(3*7)-5;
echo $operacion;
?>
genera una salida igual a 17.
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 225
Trabajar con números en PHP.
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 225
1.4



