سؤال

Is there way to get an alphabetical string for a specific hex value?

هل كانت مفيدة؟

المحلول

You can use hex2bin to convert hex:

$string = hex2bin($hex);

If you want to remove any non-alpha character from $string you can use a regular expression to remove anything that's not a-z or A-Z:

$alpha_only = preg_replace("/[^a-zA-Z]+/", '', $string);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top