php logo
PHP current function

PHP current returns an element in an array, more specifically its value. All arrays have an internal pointer, which is initialized to the first element in the array. Therefore, current will have the value of the first element if next is not used. Originally, current was created to be used on objects as well, but […]

Leer mas..
php logo
PHP next function

La función de PHP next pasa el puntero a la siguiente posición interna en el array, ademas devuelve el siguiente valor del array

Leer mas..
php logo
PHP key function

The PHP key function retrieves the key of an array. This key or key is the one of the element to which the array is pointing, being the internal pointer.

Leer mas..
php logo
PHP for and foreach statements

Generally, in PHP, for and foreach are used to traverse an array. Similar to while, for and foreach execute code while certain conditions are met. for The for statement has 3 expressions, the first one is the initial value of the iteration, or the value where the loop starts; the second one is the condition, […]

Leer mas..
php logo
PHP while and do-while statements

One of the simplest ways PHP has to create a loop or repeat a block of code while a condition is met is while, and we can also use do-while to go through the block at least once.

Leer mas..
la categoria en-php tiene 120 post/s
Last 4 post in same category

Comments