PHP Classes

not working

Recommend this page to a friend!

      PHP PDF Table using FPDF  >  PHP PDF Table using FPDF package blog  >  How to Create a PHP P...  >  All threads  >  not working  >  (Un) Subscribe thread alerts  
Subject:not working
Summary:error
Messages:2
Author:abukoko
Date:2022-09-25 09:28:16
 

  1. not working   Reply   Report abuse  
Picture of abukoko abukoko - 2022-09-25 09:28:16
hi
not working

Parse error: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in C:\AppServ\www\Q\pdf\extfpdf-2021-01-10\XFPDFExample.class.php on line 19

thanks

  2. Re: not working   Reply   Report abuse  
Picture of Stefan Kientzler Stefan Kientzler - 2022-09-26 12:11:07 - In reply to message 1 from abukoko
You must be running at least PHP version 7.4 to use this package!

The parse error you provide here indicates that the type hinting for the class property '$strMonth' is not accepted!