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
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer