Presentation is loading. Please wait.

Presentation is loading. Please wait.

Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved.

Similar presentations


Presentation on theme: "Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved."— Presentation transcript:

1 Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, frmcclurg@gmail.com Copyright © 2010 All Rights Reserved.

2 Chapter Eleven Strings and sealing wax and other fancy stuff http://webcert.kirkwood.edu/~fmcclurg /courses/php/slides/chapter11.ppt

3 Description: There are a number of different ways to compare strings. if ( "Fred" == "Fred" ) echo( "Access granted\n" ); if ( "Fred" != "Fred" ) echo( "Access denied\n" ); // case sensitive if ( strcmp( "Fred", "Fred" ) == 0 ) echo( "Access granted\n" ); // case sensitive if ( ! strcmp( "Fred", "Fred" ) ) echo( "Access granted\n" ); // ignore case if ( strcasecmp( "Fred", "FRED" ) == 0 ) echo( "Access granted\n" ); Comparing Strings

4 to be continued... http://webcert.kirkwood.edu/~fmcclurg /courses/php/slides/chapter17b.regex.ppt


Download ppt "Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, Copyright © 2010 All Rights Reserved."

Similar presentations


Ads by Google