Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.