Integer in Array returns null

I can’t see where “$int_val” is defined, may be it is defined outside the scope of “cencored_function”, it won’t work if this is the case.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)