String functions (strlen, explode, str_replace)
Në shqip: Funksionet e tekstit në PHP
ShpjegimiSQ
PHP-ja ka shumë funksione për tekst: strlen() (gjatësia), strtoupper(), str_replace(), explode() (ndan në array), implode() (bashkon), str_contains(). Për ë dhe ç përdor versionet mb_, si mb_strlen().
EnglishEN
PHP has lots of string functions: strlen() (length), strtoupper(), str_replace(), explode() (split into an array), implode() (join), str_contains(). For special letters use the mb_ versions, like mb_strlen().
Si ta mendosh
Si veglat e rrobaqepëses për stofin.
Lexoje në anglisht
Like a tailor's tools for fabric.
Shembull kodiphp
<?php
$qytetet = explode(",", "Pejë,Prizren,Gjakovë");
echo implode(" | ", $qytetet);
echo mb_strlen("Kosovë"); // 6 (strlen jep 7)