Write a program to remove characters from a string starting from zero up to n and return a new string.
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Hint:
Use string slicing to get the substring. For example, to remove the first four characters and the remeaning use
s[4:]
.Solution:
exaplanation in video:
need an explanation for this answer? contact us directly to get an explanation for this answer