Tuesday 18 February 2014

Filled Under:

how to compare two strings in php

                                the srtcmp() function will compares two strings in php. and this function is binary safe and case sensitive.

<?php
echo strcmp("easyscript4u","
easyscript4u");
?>


If this function returns 0, the two strings are equal. the output will be above code is 0







0 comments:

Post a Comment