3 Topics
|
|
Hi guys, having a bit of trouble with the following piece of code, [CODE] <?php if (strcmp($pubinfo_username, $_SESSION['username'] ) == 0) { echo "<img alt=\"Remove this post\" height=\"20\" src=\"../images/btns/x.png\" width=\"25\">"; } ?> [/CODE] What I need this code to do is compare the string from the variable $pubinfo_username and compare … |
|
How can my program search for strings that has " " enclosing it and compare it to another string? Thanks for helping me! |
|
I wrote this function to compare two strings and find their similarity. It returns the percent of their letters in common in place. ie "hello" and "yellow" share the "ello" (8 of 11 characters) and thus are 72.72 % similar. I feel like there is a better way to write … |
The End.