str_pad & str_repeat
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
str_pad("7", 3, "0", STR_PAD_LEFT) jep "007"; str_repeat("-", 10) përsërit; ucfirst() dhe ucwords() i bëjnë shkronjat e para të mëdha.
EnglishEN
str_pad("7", 3, "0", STR_PAD_LEFT) gives "007"; str_repeat("-", 10) repeats; ucfirst() and ucwords() capitalise first letters.
Si ta mendosh
Si t'i shtosh zero para numrit të faturës.
Lexoje në anglisht
Like adding zeros before an invoice number.
Shembull kodiphp
echo str_pad("7", 3, "0", STR_PAD_LEFT); // 007
echo ucwords("arta krasniqi"); // Arta Krasniqi