Working with percentages in PHP
I'm trying to create a simple split tester in PHP but I'm having some trouble getting the percentages all figured out.

So, I have a settings page where I want to put a percentage, something like 20, so that 20% of the traffic to my page will be redirected.

This will obviously need to work with rand, but I'm not exactly sure how.

Thanks for the help!
Working with percentages in PHP
===

I'm trying to create a simple split tester in PHP but I'm having some trouble getting the percentages all figured out.

So, I have a settings page where I want to put a percentage, something like 20, so that 20% of the traffic to my page will be redirected.

This will obviously need to work with rand, but I'm not exactly sure how.

Thanks for the help!