Luckydays Casino Review Nederland: Met de hulp van onze deskundige editors en hun gedetailleerde onderzoek, waren er zeker van youre gaat om de aanvullende informatie die u nodig zou kunnen hebben over de operator hier te vinden.
  • Wintika Casino No Deposit Bonus Nederland Review - Als je er naar kijkt, zul je je realiseren dat deze sector exponentieel gegroeid is.
  • Almabet Casino No Deposit Bonus Nederland Review: De graphics zijn levendig, en het heeft een gameplay die spelers een spannende ervaring biedt, en er is een intense muziek gaat samen met hen.
  • Hoe speel ik mee met miljoenenjacht bingo

    Doubleu Casino Bonus Code En Review Free Chips
    Voer gewoon uw e-mailadres en uw geboortedatum in en u kunt uw account aanmaken.
    Evolve Casino No Deposit Bonus Nederland Review
    Om dit te doen, gewoon uitvoeren van het spel in demo-modus.
    Deze loterij beperkt u niet tot een bepaalde regio, land of stad, maar het kan wereldwijd worden gespeeld.

    Hoe werkt holland casino

    Morespin Casino No Deposit Bonus Nederland Review
    Het zorgt voor een leuke verandering als youre gewend aan het spelen van slots en zijn een voetbalfan.
    Nevadawin Casino No Deposit Bonus Nederland Review
    Die zouden geen overtuigende resultaten opleveren.
    Slot 4 Fantastic Fish Gold Dream Drop By 4theplayer Demo Free Play

    Limit the number of newlines in a string

    A very short blog post this time. I often use the following short function to limit the number of breaks/newlines in comments that people can submit on a news article or other user input. You can easily limit the number of characters in a comment by using the PHP strlen function, but the comment can still use a lot of vertical space on your website if the user uses 5 breaks in his comment. See the function below to prevent this type of comments:

    /**
     * limitBreaks, prevents texts with a lot of enters/breaks after each other
     *
     * @param string $sText
     * @param int $iAmount default 2, numbers of newlines that may occur after eachother
     * @return string, cleaned up string with limited number of newlines
     */
    function limitBreaks($sText, $iAmount=2)
    {
    	return preg_replace("/[\r\n]{".($iAmount+1).",}\t*[\r\n]*/", str_repeat(PHP_EOL, $iAmount), $sText);
    }
    

    As you can see a simple but effective function.

    Leave a Comment

    Your email address will not be published. Required fields are marked *

    Scroll to Top