Articulos PHP
- 2.3 Ciclo FOR avanzado.
- 2.1 Enunciado switch.
- 2 Enunciados if.
- 1.9 Como desplazarse dentro de un arreglo o array.
- 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
- 1.1 Como utilizar Jquery
- 1.6 El método preventDefault.
- 2.9 Valor de un campo de texto con attr().
- 1.8 Creando elementos con Jquery
- 1.5 El evento keypress
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.1 Consulta SELECT.
- 3.2 Tipos de datos en MySQL.
- 3 Actualizar valores con UPDATE.
- 4 Creando cuentas MySQL.
- 2.2 Registros especÃficos con 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