Skip to content

Instantly share code, notes, and snippets.

@urielhdz
Last active May 22, 2024 17:58
Show Gist options
  • Save urielhdz/adedf62346b53b916be7e79eef45fd10 to your computer and use it in GitHub Desktop.
Save urielhdz/adedf62346b53b916be7e79eef45fd10 to your computer and use it in GitHub Desktop.
Sesión 3
<?php
trait ValidationInfo{
function validateRFC($rfc){
return strlen($rfc) == 13;
}
}
$anon_class = new class() {
use ValidationInfo;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment