This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A implements ArrayAccess, Iterator, Countable | |
{ | |
public function __construct($arr) { | |
$this->arr = is_array($arr) ? $arr : func_get_args(); | |
} | |
public function __toString() { | |
return print_r($this->arr, true); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* sfValidatorCCExpirationDate validates the expiration date for a credit card. | |
* | |
* @author Brent Shaffer <[email protected]> | |
*/ | |
class sfValidatorCCExpirationDate extends sfValidatorDate | |
{ |