anonīms Posted October 22, 2009 Report Share Posted October 22, 2009 Kā ir iespējams pārbaudīt vai strings ir zemāks par kādu noteiktu skaitli? teiksim if($blalba < -30) // šādi cik sapratu nav iespējams.. Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 22, 2009 Report Share Posted October 22, 2009 Ko? Kā tu šo: "Man garšo pankūkas ar pienu" vari salīdzināt ar -30? Ja tu mainīgajā glabā skaitli, tad vari salīdzināt. (vēl vari skatīties - http://uk2.php.net/intval ) Quote Link to comment Share on other sites More sharing options...
Kavacky Posted October 22, 2009 Report Share Posted October 22, 2009 if ( (int)$strings == 666 ) { echo 'hail satan'; } 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.