public static function index()

in php/src/ArrayUtil.php [41:52]


    public static function index($raw, $str)
    {
        if (!isset($raw) || !isset($str)) {
            throw new \InvalidArgumentException('not a valid value for parameter');
        }

        $ret = array_search($str, $raw);
        if($ret === false) {
            return -1;
        }
        return $ret;
    }