![alain01](https://xoops.org/uploads/avatars/cavt5e1e5eed1294e.gif)
With the additional explanation given by Zyspec, it is clear and I now understand Cedric's explanation
![](https://xoops.org/uploads/smil42e7a65fee35d.gif)
$idAttrib = preg_replace('/^[A-Za-z]+([A-Za-z\d-_:.])*?$/', '_', $id);
$idAttrib = !empty($idAttrib) ?? 'A' . (string)rand(1,32767); // create a random ID if it's currently empty
$idAttrib = str_replace(' ', '_', $id);
$idAttrib = !empty($idAttrib) ?? 'A' . (string)rand(1,32767); // create a random ID if it's currently empty
Yurdal wrote:
Really goods !, can't wait to download :).
Is it possible to have also an short how to to have the same design as the demo