src/AppBundle/Entity/ValorSistema.php
/**
     * Generate a token
     *
     * @return string (100 characters)
     */
Generate a token
@return string (100 characters)
Generate a token @return string ( 100 characters )
public function generaToken($length)
    {
        $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $token = '';
        for ($i = 0; $i < $length; $i++) {
            $token .= $characters[mt_rand(0, strlen($characters) - 1)];
        }
        return $token;
    }
public function generaToken ( $ length ) { $ characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ; $ token = '' ; for ( $ i = 0 ; $ i < $ length ; $ i ++ ) { $ token .= $ characters [ mt_rand ( 0 , strlen ( $ characters ) - 1 ) ] ; } return $ token ; }
Generate a token
 @return string (100 characters)
Generate a token @return string ( 100 characters )
//$length = 100;