When you put stuff in namespaces you need to remember in which namespace it is (and which library to refrence).<p>Number.parseInt is not that bad but I&#x27;ll take to_json() global function instead of (new System.Web.Script.Serialization.JavaScriptSerializer()).Serialize() (or was it Newtonsoft.Json.JsonConvert.SerializeObject()?) any day.<p>Sure, names of PHP functions look arbitrary and inconsistent but when you know the name of the function you know everything you need (apart from how to use it which you can quickly and unambigously check like: <a href="http:&#x2F;&#x2F;php.net&#x2F;file_get_contents" rel="nofollow">http:&#x2F;&#x2F;php.net&#x2F;file_get_contents</a> )