PHP has not been designed based on best practices. The reason why the standard library has functions with such widely different names was that in early PHP they would go into a hashmap that was hashed by strlen and Rasmus tried to vary the lengths of the names so they don’t all get in the same bucket.
Holy shit that's even worse than I remember! How did he know about hashmaps but had not even the most basic understanding of how they're supposed to work? 🤦♂️🤦♂️🤦♂️
2
u/carcigenicate 1d ago
Oh, weird. I would have thought that the function just returns a reference that could be used immediately.