Write a PHP program to decapitalize the first letter of the string and then adds it with rest of the string

  • برمجة بي اتش بي

Write a PHP program to decapitalize the first letter of the string and then adds it with rest of the string.

الأجوبة

<?php
//Licence: https://bit.ly/2CFA5XY

function decapitalize($string, $upperRest = false)
{
    return lcfirst($upperRest ? strtoupper($string) : $string);
}
print_r(decapitalize('Python'));

?>

Sample Output:

python
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...