- var_dump: documentation ( source)
- str_replace: documentation ( source)
<?php
$linkValue = 'adadasdasdfood-recipes';
$linkValue = str_replace('food-recipes', 'food-articles', $linkValue);
var_dump( $linkValue);