WEB DEVELOPMENT / WEB DESIGN
LINUX, PHP, HTML5, CSS (SASS), JS, (SYMFONY), JAVASCRIPT, WP,  PRESTASHOP …

DevWL – Blog

Wiktor Liszkiewicz

Tip 1 – Looking for code examples?
Check https://hotexamples.com and search whatever you’re looking for!

Tip 2 – Join Grepper to quickly find and resolve programming issues.
Join community now at codegrepper.com

Tip 3 – Learn Docker by examples
See GitHub repo. Also read our docker blog

Online PHP sandbox
onlinephp.io

Blog Posts:

PHP Linked List with end and start List Node pointers

<?php class ListNode { public $data = NULL; public $next = NULL; function __construct(string $data = NULL) { $this->data = $data; } } class LinkedList { private $_firstNode = NULL; private $_lastNode = NULL; private $_totalNodes = 0; function insert(string $data =...

PHP float number not add up

Why my numbers are not equal PHP? Floating point precision Floating point numbers have limited precision. Although it depends on the system, PHP typically uses the IEEE 754 double precision format, which will give a maximum relative error due to rounding in the order...

Division in PHP

Do we still need intdiv() since PHP 8.0 / operator supports error throwing when dividing by 0? intdiv(10, 3) == 3;intdiv(-10, 3) == -3; (int)(10 / 3) == 3;(int)(-10 / 3) == -3; floor(10/3) == 3;floor(-10/3) == -4; <?php $start1 = microtime(true); $i = 1; while ($i...

PHP division by 0

Divide by 0 in PHP How the division by 0 behave in PHP8, PHP7, PHP5 PHP has evolved in the last few years. Before when dividing by 0 we only get a warning. This behaviour did not change until php8, where numeric division 10 / 0 resulted in rasing an Error...

PHP one directional linked list

To create a list, we need to declare two classes, List Node and Linked List classes. Basic PHP one directional linked list PHP Linked list and its methods <?php class ListNode { public $data = NULL; public $next = NULL; function __construct(string $data = NULL) {...

Overriding and overloading methods in PHP

Overriding methods in PHP Overriding and overloading messages in PHP can be a little weird! There are things that will work ant stuff which will not. For example, this method overriding will work: <?php class A { function test(string $s) { echo "$s"; } } class B...

Why we love PHP 7?

Things to remember why PHP 7 is great. In PHP 7.0: New features:https://www.php.net/manual/en/migration70.new-features.phpDepreciated featureshttps://www.php.net/manual/en/migration70.deprecated.php PHP Sandbox online here Catch errors! We can catch errors or...

Convert windows path to WSL path format

Let say that we want to cd to a windows explorer directory and we don't want manually to rewrite all the backslashes. We could write a bash cmd which does just that. cd $(echo 'C:\laragon\www\docker\phpfpm-mysql-nginx' | sed 's/\\/\//g' | sed 's/C:/\/c/g') Outputs:...

Query location with in a radius

Step by step radial location querying with MongoDB MongoDB is great for computing geolocation using geospatial data Basicaly you use `$geoWithin:` with `$centerSphere:` on collection with **2dsphere** index. But lets go step by step. Scenario: Lets pretend a user is...

What should you know as a PHP developer?

As PHP developer, you need to know some common concepts and techniques that help you to write better code and provide solid solutions. It is also important to implement the right tools for the job. Tooling, development practices and development process methodology. If...

Update WordPress website manually

If you can not access the dashboard, you can perform WordPress manual update. Incompatibility of old site with new PHP version is a common issue. Updating your site manually can help you to resolve it. To make manual update / upgrade you need to access FTP / SSH or...

CodePen – JS Mini Projects

Scroll up button

JavaScript ES5 mini project

Slide in nav menu

logo swap on section scroll. JavaScript ES6 mini project.

Reveal Phone Number

Run callback on phone display

Tabster jQuery Plugin Project

Display content when click and auto rotate content

Animated text box grid

JavaScript trigered text grid animation

SVG chart content box on click

CodePen – CSS components

Hamburger animation

CSS & jQuery
PHP Design Patterns book recommendations

Favourite Books

If you thinking about good lecture, you might consider one of those books.

 

Love to code

We Are

Passion for coding and learning new things.

PHP

HTML5

Java Script

Work Tools

PHP OOP Symfony
JS ES6 React
MySQL / MariaDB / PostgresSQL

We Do

More

Other technologies

Website Design

Lorem insum dolor amet consec tetur adiriscin elit eiusmod temsor dolore masna alirua.

READ MORE

Google Ads

Lorem insum dolor amet consec tetur adiriscin elit eiusmod temsor dolore masna alirua.

READ MORE

Domain Register

Lorem insum dolor amet consec tetur adiriscin elit eiusmod temsor dolore masna alirua.

READ MORE

VPS Server with WHM cPanel setup

Lorem insum dolor amet consec tetur adiriscin elit eiusmod temsor dolore masna alirua.

READ MORE

Web Development

Lorem insum dolor amet consec tetur adiriscin elit eiusmod temsor dolore masna alirua.

READ MORE

Other Services

Lorem insum dolor amet consec tetur adiriscin elit eiusmod temsor dolore masna alirua.

READ MORE

Software we Use

Send Mail

wiktor[at]devwl.pl

Our Phone

+48 530 772 177

Message

Contact Me

Send Me a Message