How to convert instance of any type to string?

String(null) returns – “null”

String(undefined) returns – “undefined”

String(10) returns – “10”

String(1.3) returns – “1.3”

String(true) returns – “true”

I think this is a more elegent way.

Leave a Comment

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