Function ereg() is deprecated in html2fpdf.php

Posted: 18th January 2011 by admin in programming

Since on PHP the function ereg is deprecated we should use:


But here is a catch!!!! since the POSIX regular expressions are different from the PCRE used in preg_match(), you need to replace:



preg_match(‘/^([^=]*)=[“\’]?([^”\’]*)[“\’]?$/’, $v, $a3)

Note that the / works as delimiter.

That’s all

  1. educational grants says:

    Beneficial info and excellent design you got here! I want to thank you for sharing your ideas and putting the time into the stuff you publish! Great work!