Articulos PHP
- 1.3 Almacenar texto en variables
- 2.3 Ciclo FOR avanzado.
- 1.4 Trabajar con números en PHP.
- 2.7 Enlazar un programas con include.
- 3 PHP junto con MySQL.
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 Concatenar efectos con Jquery.
- 1.4 El evento click
- 2.4 Usando AJAX con el método .post().
- 2.7 Listas desplegables con change()
- 2.2 Introduciendo texto usando el método .text().
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.2 Estructura de los estilos CSS.
- 1 Hojas de estilo 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
- 3.9 Privilegios o permisos en MySQL
- 1.4 Obtener el valor más pequeño de una columna.
- 2.5 Seleccionando filas con NOT LIKE.
- 2.6 Combinando resultados con UNION ALL.
- 3.1 Borrando una fila con DELETE.
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



