PHP - Test If String Ends In -number - Free PHP Programming Tutorials, Help, Tips, Tricks, and More. Which strikes me as rather strange. I have limited experience of using php, but wonder how if the correct string is returned by the session variable, the upload works differently than with the manually entered string.
![With With](http://www.flash80.com/pochettegr/LOOSE_ENDS-Hangin_on_a_string.jpg)
PHP Tutorial
PHP HOMEPHP IntroPHP InstallPHP SyntaxPHP VariablesPHP Echo / PrintPHP Data TypesPHP StringsPHP ConstantsPHP OperatorsPHP If...Else...ElseifPHP SwitchPHP While LoopsPHP For LoopsPHP FunctionsPHP ArraysPHP Sorting ArraysPHP SuperglobalsPHP Forms
PHP Form HandlingPHP Form ValidationPHP Form RequiredPHP Form URL/E-mailPHP Form CompletePHP Advanced
PHP Arrays MultiPHP Date and TimePHP IncludePHP File HandlingPHP File Open/ReadPHP File Create/WritePHP File UploadPHP CookiesPHP SessionsPHP FiltersPHP Filters AdvancedPHP Error HandlingPHP ExceptionMySQL Database
MySQL DatabaseMySQL ConnectMySQL Create DBMySQL Create TableMySQL Insert DataMySQL Get Last IDMySQL Insert MultipleMySQL PreparedMySQL Select DataMySQL Delete DataMySQL Update DataMySQL Limit DataPHP - XML
PHP XML ParsersPHP SimpleXML ParserPHP SimpleXML - GetPHP XML ExpatPHP XML DOMPHP - AJAX
AJAX IntroAJAX PHPAJAX DatabaseAJAX XMLAJAX Live SearchAJAX RSS ReaderAJAX PollPHP Examples
PHP ExamplesPHP QuizPHP ExercisesPHP CertificatePHP Reference
PHP OverviewPHP ArrayPHP CalendarPHP DatePHP DirectoryPHP ErrorPHP FilesystemPHP FilterPHP FTPPHP HTTPPHP LibxmlPHP MailPHP MathPHP MiscPHP MySQLiPHP SimpleXMLPHP StringPHP XMLPHP ZipPHP TimezonesThis question already has an answer here:
- startsWith() and endsWith() functions in PHP 30 answers
How do one determine,if the strings appears at the end of the other string. If they do then print true to standard out and false if they don’t. Would strpos will help?
how would i make a function to run this,
ThiefMaster246k63 gold badges486 silver badges568 bronze badges
![Php Php](https://image.slidesharecdn.com/class5-phpstring-150930071109-lva1-app6892/95/class-5-php-strings-4-638.jpg?cb=1443597390)
Ryan DiazRyan Diaz
marked as duplicate by ThiefMasterJan 20 '14 at 8:01
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
2 Answers
ThiefMaster246k63 gold badges486 silver badges568 bronze badges
Hanky PankyHanky Panky42.2k8 gold badges49 silver badges84 bronze badges
A100WebSolutionsA100WebSolutions