Welcome Guest, Not a member yet? Register   Sign In
Name splitter library?
#6

(This post was last modified: 08-10-2018, 11:06 PM by John_Betong.)

@kaitenz


example 001: Bond, James E.

example 002: John James E. Bond"

First example has surname first and second example has surname last! 

Reminds me of: https://en.wikipedia.org/wiki/Garbage_in,_garbage_out

It would help if there was a full list of possible names.

PHP Code:
echo ''$str "John James E. Bond";
$tmp explode(' '$str);
echo 
'<pre>';
 print_r($tmp);
echo 
'</pre><br>';

echo 
''$str 'Bond, James E.';
$tmp explode(' '$str);
echo 
'<pre>';
 print_r($tmp);
echo 
'</pre>'

Output:
Quote:John James E. Bond
Array
(
   [0] => John
   [1] => James
   [2] => E.
   [3] => Bond
)


Bond, James E.
Array
(
   [0] => Bond,
   [1] => James
   [2] => E.
)
Reply


Messages In This Thread
Name splitter library? - by kaitenz - 08-09-2018, 04:18 AM
RE: Name splitter library? - by Pertti - 08-09-2018, 04:52 AM
RE: Name splitter library? - by kaitenz - 08-09-2018, 08:56 PM
RE: Name splitter library? - by Pertti - 08-10-2018, 12:59 AM
RE: Name splitter library? - by kaitenz - 08-10-2018, 10:19 PM
RE: Name splitter library? - by John_Betong - 08-10-2018, 11:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB