top | item 46631110

(no title)

tikotus | 1 month ago

I'm doing PHP for the first time in years. I needed a function that returns the date of last week's Monday. Turns out PHP has a funky date querying language. I can just do: $today->modify('monday last week'). Makes me happy.

discuss

order

Aachen|1 month ago

[It has been (1) days since the last time that I needed strtotime]

Don't know how to do this without PHP, so I actually use it on the shell inline between a bunch of Bash. I assume that's the same function with new syntactic sugar

dapperdrake|1 month ago

Is there a way to cache the parsed query "monday last week" like regexes can be compiled?

spiderfarmer|1 month ago

PHP is just awesome.

tikotus|1 month ago

Right? I don't do much web dev, but now that I do, I don't see why I'd use anything else.

is_true|1 month ago

PHP is always there for you.