Articles Tagged 'explode ()'

How to develop in PHP with Xcode and Objective-C

How many programmers to use, I also build my own library of functions ready to be reused in multiple projects and multiple contexts. Let me pass the title of this post, perhaps a bit 'risky but, nevertheless, as we shall see, not far from the truth.

In Objective-C you can call and write C / C + +, including the assembly for that matter. This characteristic makes it a very versatile language and, in some respects, phenomenal. On the one hand, you can use and appreciate the purely Objective-C syntax, the other can run faster porting of code written in ANSI C (perhaps for Digital Unix or Sun) and can comfortably fit into our iPhone and iPad applications; not to mention all the BSD kernel is already available on Mac OS X!

More ...

Very short snippet: PHP plain dates

. Converts a date in the format yyyy-mm-dd hh:mm:ss to yyyymmddhhmmss . Useful to exploit the functions of ordering, the type asort() .

1
2
3
4
5
6
/ **
* Format from "yyyy-mm-dd hh: mm: ss" to "yyyymmddhhmmss"
* /
$d ) { plainDate function ($ d) {
preg_replace ( '/(-|:|\040)/' , '' , $d ) ) ; return ( preg_replace ('/ (- |: | \ 040) /','', $ d));
}

More ...


Stop SOPA