Verify Value in PHP

January 3, 2014 at 3:08 pm 1 comment

Check dulu sebelum diolah lebih lanjut value dari form. check this very simple cheat sheet:


print "1";

print "<br />";

print "A1";

print "<br />";

print (int) "1";

print "<br />";

print (int) "A1";

print "<br />";

print (int) "10.0";

print "<br />";

print (float) "10.1";

hasilnya:


1
A1
1
0
10
10.1

Entry filed under: PHP. Tags: .

Power Management di Windows 7 Berbicara Tanpa Karma (bad karma)

1 Comment Add your own

  • 1. adienz  |  February 6, 2014 at 6:10 am

    Nais inpoh bray

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Because I Learn CI and Jquery

http://api.jquery.com

http://www.grocerycrud.com

http://Zedwood.com

Twitter Updates

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

My FB page


%d bloggers like this: