Write a PHP program to remove the character in a given position of a given string. The given position will be in the range 0..string length -1 inclusive
- برمجة بي اتش بي
- 2021-09-08
- mhanasmh00489829403
الأجوبة
<?php
function test($s, $n)
{
return substr($s,0,$n).substr($s,$n+1,strlen($s)-$n);
}
echo test("Python", 1)."\n";
echo test("Python", 0)."\n";
echo test("Python", 4)."\n";
Sample Output:
Pthon ython Pythn
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال