Welcome to php. This has been a topic so many times.
Bottom line is, the only way to get over it is using a php centric ide/editor that suggests.
By the way that is just half the problem you will also see functions where the order is oposite.
Like
(mixed $needle , array $haystack)
and then
(array $haystack , string $needle)
So get used to it, or get out is the motto.