Question: // function firstOf3Strings // // Given three String arguments, return the String that alphabetically // precedes or is equal to the other two string arguments

// function firstOf3Strings // // Given three String arguments, return the String that alphabetically // precedes or is equal to the other two string arguments // firstOf3Strings("a", "b", "c") returns "a" // firstOf3Strings("X", "b", "c") returns "X" // firstOf3Strings("123", "1232", "123 0") returns "123" // function firstOf3Strings($a, $b, $c) { // Test this wth your own asserts return "under construction"; }

// Write your own tests here. We have about 50 asserts for these 6 functions

//////////////////////////////////////////////////////////////////////// // Function mirrorEnds() // // Complete method mirrorEnds that given a string, looks for a mirror // image (backwards) string at both the beginning and end of the given // string. In other words, zero or more characters at the very beginning // of the given string, and at the very end of the string in reverse order // (possibly overlapping). For example, "abXYZba" has the mirror end "ab". // // mirrorEnds("") returns "" // mirrorEnds("abcde") returns "" // mirrorEnds("a") returns "a" // mirrorEnds("abca") "a" // mirrorEnds("abba") returns "abba" // mirrorEnds("abbA")) returns "" (case sensitive 'a' != 'A') // // Precondition: The argument to sequence is always a string. function mirrorEnds($str) { // Test this wth your own asserts return "Under construction"; }

// Add your own tests here (reuse your own JS asserts maybe?

PHP functions please help

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!