This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ORDER BY CASE WHEN parent_id=0 THEN id ELSE parent_id END ASC, id ASC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| //create a closure as its cooler and pass in our pcodes | |
| $temp = function() use ($pcodes) { | |
| $new = array(); | |
| //loop through and create new array | |
| foreach($pcodes as $code => $additional) { | |
| $new[] = array('location' => $code, 'additional' => implode(', ', $additional), 'type' => 'postcode'); | |
| } | |
| return $new; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date('F', mktime(0,0,0,$i,1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('a.help').on({ | |
| mouseenter: function() { | |
| }, mouseleave: function() { | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| preg_match('/\(([^\)]*)\)/', $get['location'], $matches); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| //array walk closure to trim each entry | |
| $array = array('soemthing', 'something else ', ' another '); | |
| array_walk($array, function(&$n) { | |
| $n = trim($n); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this si the test |