PHP-Fusion Development

parse_imageDir()

Parse and force image/ to own directory.

Versions: 9

parse_imageDir( string $data [, string $prefix_ ] ) : string

Parameters

$data (string) (Required) String to parse.

$prefix_ (string) (Optional) Image folder. Default value: IMAGES

Return Values

(string) Parsed string.

Examples

$data = 'Text <img src="images/img.png" alt="img">';
echo parse_imageDir($data, IMAGES_N);
// Text <img src="infusions/news/images/img.png" alt="img">