Skip to content

Instantly share code, notes, and snippets.

@mikejoseph
Last active August 27, 2015 23:46
Show Gist options
  • Select an option

  • Save mikejoseph/2f177afc6696978f5bf9 to your computer and use it in GitHub Desktop.

Select an option

Save mikejoseph/2f177afc6696978f5bf9 to your computer and use it in GitHub Desktop.
<?php
$str1 = 'этёам фюйзчыт';
$str2 = 'تكبّد العالمية';
$str3 = '手真リひ通西加ワ';
echo str_replace(' ', '_', strtolower($str1)).'<br />';
echo str_replace(' ', '_', strtolower($str2)).'<br />';
echo str_replace(' ', '_', strtolower($str3));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment