Kaklz Posted February 27, 2009 Report Share Posted February 27, 2009 paņem ar min() funkciju. teiksim $skaitlis = min(100, $tavs_apreekjinaatais). Ja tavs apreekjinaatais buus teiksim 87, tad $skaitlis buus 87. ja tavs apreekjinaatais buus 500, tad $skaitlis buus 100. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.