git.schokokeks.org
Repositories
Help
Report an Issue
bibweb.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
092af0e
Branches
Tags
master
bibweb.git
utils.php
migration auf bootstrap-5 und vorname abfragen auf der startseite
Bernd Wurst
commited
092af0e
at 2025-09-11 19:52:32
utils.php
Blame
History
Raw
<?php function split_name($name, &$fname, &$lname) { if (strpos($name, ', ') !== false) { $parts = explode(", ", ucwords($name)); $lname = array_shift($parts); $fname = implode(" ", $parts); } elseif (strpos($name, ' ') !== false) { $parts = explode(" ", ucwords($name)); $lname = array_pop($parts); $fname = implode(" ", $parts); } else { $lname = $name; } }