About 511,000 results
Open links in new tab
  1. How do I replace part of a string in PHP? - Stack Overflow

    Remove a certain string from a PHP input text field before saving it to MySQL database. 0.

  2. Converting an integer to a string in PHP - Stack Overflow

    Jun 23, 2009 · Thanks for the comment@ Peter Mortensen That is the return type "STRING" means your value should be converted as a string in a new variable. so that's why I edited string – …

  3. Convert a date format in PHP - Stack Overflow

    The PHP strtotime manual here states that "The function expects to be given a string containing an English date format". What it actually means is that it expects an American US date format, such …

  4. PHP convert date format dd/mm/yyyy => yyyy-mm-dd

    I can see great answers, so there's no need to repeat here, so I'd like to offer some advice: I would recommend using a Unix Timestamp integer instead of a human-readable date format to handle …

  5. How do I convert a string to a number in PHP? - Stack Overflow

    Dec 16, 2011 · PHP reads the string until it finds first non-numerical character for the required type. Meaning that for integers, numerical characters are [0-9]. As a result, it reads 3, since it's in [0-9] …

  6. How can I replace a variable in a string with the value in PHP?

    A theory can be read in the blog post Wanted: PHP core function for dynamically performing double-quoted string variable interpolation. The major problem is that you don't really know all of the …

  7. php - Converting string to Date and DateTime - Stack Overflow

    If I have a PHP string in the format of mm-dd-YYYY (for example, 10-16-2003), how do I properly convert that to a Date and then a DateTime in the format of YYYY-mm-dd? The only reason I ask …

  8. php - Str_replace for multiple items - Stack Overflow

    Sep 30, 2011 · This function only traverses the string once. This function avoids the need for a regex pattern or an array to make multiple replacements. Each character in the find string must be …

  9. php - Split a string containing words into an array of individual …

    There is a function in PHP specifically designed for that purpose, str_word_count(). By default it does not take into account the numbers and multibyte characters, but they can be added as a list of …

  10. PHP String to Float - Stack Overflow

    But in Germany you would change comma and point: 1.000,46 This makes it really hard guessing the right number in multi-language applications. I strongly suggest using Zend_Measure of the Zend …

Refresh