Php – Code for less than or equal to 10 in codeIgniter

codeigniterPHP

I am using the following code to validate my field.
If the number is greater than 10 the validation message is displaying.

less_than[10]  

Now If anyone enter 10,then also the validation message is displaying.
I need a code for less than or equal to 10 in codeIgniter.

Thanks In advance.

Best Answer

Simply use less_than[11] It would work like less than or equal to 10 ..