Profile
Achievement
satie83's Recent PHP Snippets
- All /
« Prev 1 Next »
In SQL I can get this by adding AND to the join
LEFT JOIN installations i ON a.id = i.app AND i.page = :page
This way I get the installation info for an app that has an installation on the page, but I get null values on the columns for app's that...
0
2244
posted 9 years ago by satie83
Der folgende Codeschnipsel enthält keinerlei Überprüfungen der übergebenen Parameter, diese sollten für den produktiven Einsatz noch nachgepflegt werden.
Wie man sieht, ist die Berechnung von Wochendenden und Feiertagen recht einfach. Diese Ber...
1
787
posted 10 years ago by satie83
I want to extract the numbers from a string that contains numbers and letters like
0
1016
posted 10 years ago by satie83
Sometimes it’s helpful to ONLY get numeric characters.
Phone numbers, age — whatever your little PHP heart desires.
0
1597
posted 11 years ago by satie83
Once in a while we need to check whether a string contains substring, some other string or characters or a value. Checking for existence of a string (or substring) inside another string is easier than it might seem. The following article describes ho...
0
719
posted 11 years ago by satie83
Example calculate yesterday, but if you multiply by some number you can get in an easy way, weeks, months or years
0
844
posted 11 years ago by satie83
This function checks if the $stringComplete variable ends with the string $endString.
0
604
posted 12 years ago by satie83
A nice way to do sorting of a key on a multi-dimensional array - DavidG
0
854
posted 12 years ago by satie83