Mecha CMS

Deep learning on using the API.

Is

Detector.

2.0.02.2.0Genome

Without specifying the hexColor method via _, checking any input will always return null.

// This will return `null` because the `Is::hexColor` method never existed
if (Is::hexColor('#000')) {
    echo 'Is a HEX color.';
} else {
    echo 'Is not a HEX color.';
}

Result:

Is not a HEX color.

0 Comments

No comments yet.