Sorry for my bad English in Advance. Here is my JSON return.
How can I remove the part UY268_CR5,0,182,268_AL_
. Specifically that part only. And I have many of this links. Each having different strings there. For example:
As shown it is different. I want to remove the part UX182_CR0,0,182,268_AL_
. Each of the results I have has almost the same structure but the end part I want to remove. I am on laravel and so I am encoding my jsons result from controller. Is there anyone this can be done with php?
Update:
Here is the code I tried.
$json = json_decode($data,true);
$slice = str_replace("UY268_CR5,0,182,268_AL_","", $json);
return $slice ['poster'];
The string is removed but what about different strings with different URL's like mentioned above?