Category Archives: PHP Solutions

PHP: strtolower for Russian and Cyrillic

If you need to work with Russian text in PHP, you may notice that functions that are related to CaSe are not working as expected. I mean strtolower, strtouper, ucwords, and so on. In order to get what you need I suggest to use mb_convert functions. Here is the example: You can check reference table for functions, I… Read More »

PHP: strpos that takes array as an argument

Just found one useful function and would kike to share it. If you often use strpos, you might find this useful. This function will be useful if you need to find whether ANY element of array is presented in the source string. Else you have to either modify it, or create another one.