2

Hypothetically speaking, is it possible to use emoji characters in PHP namespaces? Are there any technical downsides?

Example:

<?php
/**
 * app/controllers/HomeController.php
 *
 * @package 
 */

namespace ;
use \Slim\Slim;
use \Requests;

class HomeController extends \\BaseController
{

    /**
     * Constructor
     */
    function __construct() {
        parent::__construct();
    }

}
Paul Wenzel
  • 1,886
  • 2
  • 15
  • 15
  • The documentation does not seem to oppose it really: http://php.net/manual/en/language.namespaces.php – Hozikimaru Apr 07 '15 at 15:51
  • Except here where it states _same rules as other labels_ http://php.net/manual/en/language.variables.basics.php – AbraCadaver Apr 07 '15 at 15:58
  • Check also this: http://stackoverflow.com/questions/3417180/exotic-names-for-methods-constants-variables-and-fields-bug-or-feature – hek2mgl Apr 07 '15 at 17:22

0 Answers0