Articulos PHP
- 1.6 Unir comparaciones.
- 3.4 Usando extract con MySQL.
- 2.6 Saltando un ciclo con CONTINUE
- 1.5 Hacer comparaciones de valores.
- 1.8 Arreglos o array.
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.1 El selector $(this).
- 2.2 Introduciendo texto usando el método .text().
- 3 Concatenar efectos con Jquery.
- 2.3 Pasando el cursor sobre un elemento.
- 2.7 Listas desplegables con change()
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
- 2 Expresiones <,>,<= y >=.
- 2.5 Seleccionando filas con NOT LIKE.
- 1.6 Ordernar valores con ORDER BY.
- 4.1 Eliminando privilegios de una cuenta.
- 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



