Menu

#Unreliable

3 posts

Feed·
3 of 3 posts
0Read More

A thought about PHP's string-to-number conversions

#php#redditr#unreliable#value#reliable
Long article (314 words) — no AI summary yet.

Hello, I have always found PHPs string to number conversions a bit odd. Classic example: php $value = (int)"32px"; // 32 $value = (int)"kg32"; // 0 I know this is intentional, and sometimes it is useful. But..…

15s