- var_dump: documentation ( source)
- str_replace: documentation ( source)
<?php
$linkValue = 'http://www.joybauer.com/food-information/food-articles/vegetables.aspx';
$linkValue = str_replace('food-information/food-articles', 'food-articles', $linkValue);
var_dump($linkValue);