Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class token{
- public $tiempo_caducidad;
- public static function tiempo_caducidad($tiempo_caducidad){
- $this->tiempo_caducidad = $tiempo_caducidad;
- }
- }
- ?>
- <?php
- require(token.php);
- class registrar_persona{
- function principal(){
- token::tiempo_caducidad(60*60);
- }
- }
- $clase_registrar_persona = new registrar_persona();
- $clase_registrar_persona->principal();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement