Jump to content

Unsure on some php code


glethro

Recommended Posts

I'm not a PHP programmer and I have very little experience with PHP in general.

 

However, I've got some code that I believe comes from a php module file. I was wondering if anyone could either explain what it does or provide an equivalent example in a different language (preferably in c or python).

 



sub ASCIItoUnicode
{
return join('', map {($_, "\0")} split(//, $_[0]));
}


... This isn't homework in any way, shape or form.

Link to comment
https://forums.phpfreaks.com/topic/282141-unsure-on-some-php-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.