Floating point numbers (also known as «floats», «doubles», or «real numbers») can be specified using any of the following syntaxes: <?php $a = 1.234; $b = 1.2e3; $c = 7E-10; ?> Formally: LNUM [0-9]+ DNUM ([0-9]*[\.]{LNUM}) | ({LNUM}[\.][0-9]*) EXPONENT_DNUM [+-]?(({LNUM} | {DNUM}) [eE][+-]? {LNUM}) The size of a float is platform-dependent, although a maximum of
Continuar leyendo...
An integer is a number of the set ? = {…, -2, -1, 0, 1, 2, …}. Syntax Integers can be specified in decimal (base 10), hexadecimal (base 16), or octal (base 8) notation, optionally preceded by a sign (- or +). To use octal notation, precede the number with a 0 (zero). To use
Continuar leyendo...
Four scalar types: boolean integer float (floating-point number, aka double) string Two compound types: array object And finally two special types: resource NULL This manual also introduces some pseudo-types for readability reasons: mixed number callback And the pseudo-variable $…. Some references to the type «double» may remain in the manual. Consider double the same as
Continuar leyendo...
This is the simplest type. A boolean expresses a truth value. It can be either TRUE or FALSE. Note: The boolean type was introduced in PHP 4. Syntax To specify a boolean literal, use the keywords TRUE or FALSE. Both are case-insensitive. <?php $foo = True; // assign the value TRUE to $foo ?> Typically,
Continuar leyendo...
PHP supports ‘C’, ‘C++’ and Unix shell-style (Perl style) comments. For example: <?php echo ‘This is a test’; // This is a one-line c++ style comment /* This is a multi line comment yet another line of comment */ echo ‘This is yet another test’; echo ‘One Final Test’; # This is a one-line shell-style
Continuar leyendo...
When PHP parses a file, it looks for opening and closing tags, which tell PHP to start and stop interpreting the code between them. Parsing in this manner allows PHP to be embedded in all sorts of different documents, as everything outside of a pair of opening and closing tags is ignored by the PHP
Continuar leyendo...
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Nice, but what does that mean? An example: Example #1 An introductory example <!DOCTYPE HTML PUBLIC «-//W3C//DTD HTML 4.01 Transitional//EN» «http://www.w3.org/TR/html4/loose.dtd»> <html> <head> <title>Example</title> </head> <body> <?php
Continuar leyendo...
Si tomamos los 10 lenguajes de programación más populares según el índice TIOBE y buscamos en indeed cuál es el salario medio en Estados Unidos para cada lenguaje, obtenemos el siguiente resultado: Es decir, entre $60.000 y $80.000 dólares. Incluso teniedo en cuenta lo barato que está el dólar, estaríamos hablado de entre 38.000 €
Continuar leyendo...
Tabla de contenidos Funciones restringidas/inhabilitadas por Modo Seguro El Modo Seguro de PHP es un intento para resolver el problema de la seguridad en un servidor compartido. Tratar de resolver este problema al nivel de PHP es arquitectónicamente incorrecto, pero ya que las alternativas en un servidor web y a niveles de sistemas operativos no
Continuar leyendo...
Navegando por la red, en los inicios de mi carrera como webmaster me tope con un sitio web, que dio respuestas a muchas de mis preguntas sobre la definición del sofware libre, (no fue el unico), pero este caso fue el de www.phpclasses.org un sitio dedicado enteramente a la programación en php orientada a objetos,
Continuar leyendo...