Udgivet i 3. November 2009 ¬ 23:52h.Christoffer Kjølbæk
< ?php
function diff($a, $b) {
return ($a < $b) ? ($b - $a) : ($a - $b);
}
?>
Update: Apparently I was to tired when I wrote this, a lot faster method is like Søren mentions: abs($a-$b) :)
Læst resten af dette indlæg »
Udgivet i 1. November 2009 ¬ 16:58h.Christoffer Kjølbæk
This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion.
Læst resten af dette indlæg »
Udgivet i 21. May 2007 ¬ 21:33h.Christoffer Kjølbæk
For a long time, I have been experiencing a bug in the PHP highlightning in jEdit. The problem is when writting something like
$foo = “bar\””;
the highlightning ignores \” and start looking for the ending of the “”.
This page gives the answer to my problem.
In Ubuntu Feisty Fawn, with jEdit installed with the Java-installer, the file [...]
Læst resten af dette indlæg »