php split()
Bit behind the eight ball, but the php function split(string $pattern, string $string) is depreciated. Instead use explode(string $delimiter, string $string)
1
For more info… http://php.net/manual/en/function.explode.php
creating mutli line strings in c#
Great concept, if you’re like me and hate having really really long one line strings… e.g. a query this is the solution for you.
Example, you may have the following… which won’t work.
1
Instead of adding ” something ” + (new line) + ” something else “… Continue reading
PHP Single vs Double quotes
Had a question yesterday…
Is it bad practice to use double quotes (“) for almost all my expressions in…well, anything? As opposed to a single quote? I know there’s a difference between the two and when to use it, but is it just generally better practice to use single instead of double? Most developers I see use single quotes for almost everything.
Quick answer, there’s no… Continue reading
