|| Web Start Help ||

How to Fix Deprecated Code

Ever find the perfect code for your website, just to see that the code is outdated?
Heck, sometimes a site will offer you the new solution without explaining how.

Well, here I explain the deprecated codes and how to replace them on your site.

The FONT tag.

They say don't use <font> because it's deprecated. Use the style attribute instead. WTF? That is no help.

What they don't tell you is that the style attribute can be used with many tags. So, here I will show you a real solution.

Here are the respective results:

TEST it out

TEST it out


Regex (Regular Expressions)

PHP users, if you once used 'ereg' to compare patterns in strings, you may be hearing to use 'preg_match' instead. So, here I will show you a real solution.

Note that the only difference is that you change the name of the function and add delimiters to the pattern (add forward slashes around the pattern code).