- str_replace: documentation ( source)
<?php
function a() {
return str_replace('/module.json', '', '../test_modules/jebyzahd/irfzvclk/aklvznwg/xquhztwg/epayglbt/bihgrctj/erhivlsj/ihnuoakv/module.json');
}
function b($value) {
return str_replace($value, '', '../test_modules/jebyzahd/irfzvclk/aklvznwg/xquhztwg/epayglbt/bihgrctj/erhivlsj/ihnuoakv/module.json');
}
a();
b('/module.json');