Home » Tag Archives:phpphp (page 20)

Tag Archives: phpphp

php – Remove empty array elements

February 22, 2020 Php Leave a comment

Questions: Some elements in my array are empty strings based on what the user has submitted. I need to remove those elements. I have this: foreach($linksArray as $link) { if($link == '') { unset($link...

PHP random string generator

February 22, 2020 Php Leave a comment

Questions: I’m trying to create a randomized string in PHP, and I get absolutely no output with this: <?php function RandomString() { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEF...