DEV Community


Discussion on: PHP Functions every beginner should know.

imrprofessor profile image
Mr. Professor

There are lots of array and string functions. Who definitely helps beginners like:
Array methods:

  1. count();
  2. Impolde();
  3. explode();
  4. sizeof();
  5. sort();
  6. array_count_values();
  7. array_keys(); etc... String methods:
  8. strlen();
  9. strtoupper();
  10. strtolower();
  11. trim();
  12. strstr();
leohajder profile image
Leo Hajder

... and all the mb_* versions of string functions. You might not even know you're deling with an encoding with multi-byte characters. Basically, if the normal string functions return wrong or strange results, try adding the mb_ in front of them.

Forem Open with the Forem app