Skip to content

Instantly share code, notes, and snippets.

View gtsifrikas's full-sized avatar

George Tsifrikas gtsifrikas

View GitHub Profile
function intersect_str($left, $right)
{
$str1 = str_split($left);
$str2 = str_split($right);
$number_of_common_characters = 0;
$len1 = count($str1);
$len2 = count($str2);