WordPress plugin: emm-portfolio

Ir order to standarize the two versions of the Material for Coders WordPress theme that has a GitHub version and a WordPress directory version (one with an auto-updater and portfolio features and the other without them) I created this plugin to sepparate the portfolio features and reduce the differences between versions.

Leer más

PHP: Ordenar array por el valor de un campo

Recomiendo investigar: usort en php.net, bubble sort, ordenamiento por burbuja en wikipedia y la fuente. function orderMultiDimensionalArray ($toOrderArray, $field, $inverse = false) { $position = array(); $newRow = array(); foreach ($toOrderArray as $key => $row) { $position[$key] = $row[$field]; $newRow[$key] = $row; } if ($inverse) { arsort($position); } else { asort($position); } $returnArray = array(); […]

Leer más

Comprobar validez de un dominio con PHP (2)

Hace un año y medio más o menos escribí un articulo sobre como comprobar que un dominio existía. Pero ahí lo explicaba con una función hecha a mano. Ahora acabo de ver que también se puede hacer con una función nativa y resulta mucho más sencillo. Además es capaz de comprobar un tipo de registro […]

Leer más