UNPKG

phpjs

Version:

php.js offers community built php functions in javascript

18 lines (13 loc) 790 B
<!-- Generated by Rakefile:build --> <strong> <a href="http://brett-zamir.me" rel="nofollow">Brett Zamir</a> </strong> on 2010-06-21 04:50:35 <br /> @Paulo: I think Kevin wants to avoid automatically importing PHP constants (whether as globals or on the namespaced object). If a user wants them, they can follow the notes at http://phpjs.org/functions/get_defined_constants:839 to get them in scope, but this function constant() could still be useful without them in the case of user-defined constants. <hr /> <strong> Paulo Freitas </strong> on 2010-06-19 18:06:27 <br /> Hmm, this one should require get_defined_constants(), no? When I wrote I think that the get_defined_constants() doesn't exist yet, but for now it should be useful to do things like constant('DATE_W3C'). :) <hr />