06.04.2018, 23:19
There is y_stringhash already for that:
PHP Code:
switch (YHash(string))
{
case _H<hello>: {}
case _H<world>: {}
}
