PHP: strpos($haystack, $needle);
and
Python: haystack.find(needle)
It seems like python uses the latter method more often, and PHP the former. But is there a name for these two ways of doing it? I'm looking for the name of the style of programming.
Is it correct to call the one procedural and the other object-oriented programming? Or is that simplifying matters?