PHP - String Functions
You have a string
$data = "user:john;id:12345;role:admin";. How do you extract the user name "john" using substr and strpos functions in PHP?