- strpos: documentation ( source)
- str_replace: documentation ( source)
<?php
/**
* ZCE material
* @category global keyword $GLOBALS
* @author me@vuongnguyen.net
* @content : ...token,
* @copyright 2018 Vuong
*/
namespace vidu;
class helloworld{
public function __construct(){
echo strpos(str_replace("\\", "/", __CLASS__), "/");
}
}
$a = new helloworld;