Puddinq.com sharing knowledge
';

PHPstorm auto completing html code

PHPstorm auto completing html code

A short video showing what you can do with emmet in PHPstorm to automplete html structures

Programmatticaly create a WooCommerce product with variations

Sometimes you need to alter a lot of products, or create extra options. Even if bulk edit could do it and you max to editing 200 pages at once, it is still a tedious job vulnerable for human error. You need a script. The snippets below will not fix your job but give you the […]

Output array() as html table with keys as colomn header

This function returns every array() as html table. function puddinq_display_table($result) { if (is_null($result)) { return; } ?> <table> <thead> <tr> <th><?php echo implode(‘</th><th>’, array_keys(current($result))); ?></th> </tr> </thead> <tbody> <?php foreach ($result as $row): array_map(‘htmlentities’, $row); ?> <tr> <td><?php echo implode(‘</td><td>’, $row); ?></td> </tr> <?php endforeach; ?> </tbody> </table> <?php }