Sep
Posts Tagged php
15
Sep
Sep
fravælge matchgrupper i preg_match
Posted in qwerty | No Comments »igen en post om ting jeg aldrig kan huske.
preg_match_all('~(?:/xyz/)?(.+)~', $subject, $matches);
her er du kun interesseret i at få sidste matchgruppe med i $matches, så derfor er første matchgruppe prefixet med “?:” – hvilket gør at det bliver ignoreret i selve resultatsættet.
27
Oct
Oct
namespace seperator in php
Posted in qwerty | 2 Comments »well well well… the namespace seperator for php5 is now a “\” i’m not sure i like/approve of the decision, i would have voted for “:::” or “.” but hey
you can find more info here:
- wiki.php.net
- the irc discussion
- an example
- slashdot laughs
- peoples comments here and here
i guess we will just have to live with this
21
Oct
Oct
endnu en grund til at bruge symfony
Posted in qwerty | No Comments »vi så det godt demonstreret i paris da vi var på symfonykursus, men det er fame fed.
20
Oct
Oct
batch processing med php/cron
Posted in qwerty | No Comments »en slide om batch processing med php/mysql/cron fra php|tek – syntes lige jeg ville dele