Skip to content
pontikis.net
  • Blog
  • WordPress
  • Labs
  • Write For Us
  • About
Search this website
Menu Close

php

  1. Home>
  2. Blog>
  3. php>
  4. Page 6
Read more about the article How to find whether a variable is positive integer with PHP
Credits

How to find whether a variable is positive integer with PHP

  • Post author:Christos Pontikis
  • Post published:August 29, 2013
  • Post category:Web Development
  • Reading time:2 mins read

PHP is_numeric() is useful to find whether a variable is a number or a numeric string. How you can check if a variable is an integer? You may use the…

Continue ReadingHow to find whether a variable is positive integer with PHP
Read more about the article Passing Array Variables using POST or GET with PHP
Credits

Passing Array Variables using POST or GET with PHP

  • Post author:Christos Pontikis
  • Post published:August 27, 2013
  • Post category:Web Development
  • Reading time:2 mins read

A convenient way to pass a single or multidimensional (possible utf-8) array is to serialize it ("convert it to a string") and pass it using a hidden input. After post…

Continue ReadingPassing Array Variables using POST or GET with PHP
Read more about the article Find all occurrences of a substring in a string with PHP
Credits

Find all occurrences of a substring in a string with PHP

  • Post author:Christos Pontikis
  • Post published:August 25, 2013
  • Post category:Web Development
  • Reading time:1 mins read

PHP stripos (or mb-stripos) finds the position of the first occurrence of a (case-insensitive) substring in a string. How to find all occurrences? Here is a solution: <?php /** *…

Continue ReadingFind all occurrences of a substring in a string with PHP
Read more about the article How to Escape JSON Special Characters using PHP
Credits

How to Escape JSON Special Characters using PHP

  • Post author:Christos Pontikis
  • Post published:August 23, 2013
  • Post category:Web Development
  • Reading time:3 mins read

JSON is a data format (possible the most) suitable for use with javascript, especially on ajax operations. Some characters in strings have to be escaped, otherwise json cannot be parsed and an error will…

Continue ReadingHow to Escape JSON Special Characters using PHP
Read more about the article A Simple PHP Class to Create RSS Feed
Credits

A Simple PHP Class to Create RSS Feed

  • Post author:Christos Pontikis
  • Post published:August 18, 2013
  • Post category:Web Development
  • Reading time:11 mins read

RSS (Really Simple Syndication) is the use of an XML document in order to share content across the Internet. An RSS document, aka "feed" includes full or summarized text, plus…

Continue ReadingA Simple PHP Class to Create RSS Feed
  • Go to the previous page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • Go to the next page

Categories

Archives

NewsLetter

Click here to subscribe to our free email newsletter.
Unsubscribe anytime with a click.

LIKE OUR PAGE!

  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Opens in a new tab
  • Contact
  • Privacy
  • Terms
  • Credits
© Christos Pontikis 2013 - 2022
Close Menu