Articulos PHP
- 1.2 Enunciados de salida echo.
- 3.2 Obteniendo información de la base de datos.
- 2.1 Enunciado switch.
- 3.1 Conexión MySQL con enunciado die.
- 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
- 3.1 Callback en Jquery
- 1.6 El método preventDefault.
- 3 Concatenar efectos con Jquery.
- 2.6 El efecto fadeIn y fadeOut.
- 1 Jquery
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.1 Como incluir estilos en una página web.
- 1.2 Estructura de los estilos CSS.
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
- 3.5 Crear y borrar una base de datos
- 3.8 Cuentas de usuario MySQL
- 1.2 Función AVG().
- 4 Creando cuentas MySQL.
- 1.4 Obtener el valor más pequeño de una columna.
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



