Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

displaying and formatting faculty names

View firstmiddlelastnames
1 2 3 4 5 6 7 8 9 10 11 12
<div class="profile_detail"> <span class="title04">
<?php
$firstpart = strtok($faculty_data['Faculty']['firstName']." ".$faculty['Faculty']['middleName']." ".$faculty_data['Faculty']['lastName']," ");
echo $firstpart;
$tot_len = strlen($faculty_data['Faculty']['firstName']." ".$faculty['Faculty']['middleName']." ".$faculty_data['Faculty']['lastName']);
$len = strlen($firstpart);
$example = substr($faculty_data['Faculty']['firstName']." ".$faculty['Faculty']['middleName']." ".$faculty_data['Faculty']['lastName'],$len,$tot_len-$len);
?>
<br />
<?php
echo $example;
?></span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.