- preg_replace: documentation ( source)
- strtolower: documentation ( source)
<?php
$string = "Griideonde numériqueé";
$string = strtolower($string);
$string = preg_replace("/[^A-Za-z0-9 ]/", '', $string);
$string = preg_replace('/\s+/', '', $string);
echo "gn_" . $string;