Forum
× Components and Libraries for Web Development, discussions, problems and suggestions

Question How make lib for PHP

  • usbdoo
  • usbdoo's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
7 months 22 hours ago - 7 months 22 hours ago #10843 by usbdoo
usbdoo created the topic: How make lib for PHP
library TestLib;
{$mode objfpc}{$H+}
uses
  Classes;
  function ReturnPHP(aText:string) :string; cdecl;
  begin
    ReturnPHP:='Success   :'+aText;
  end;
  exports
    vrni;
  end.

The question is?

Can this ReturnPHP use in PHP?
I would like this lib "ReturnPHP" to load in php and execute the function in PHP
Is this possible?

This lib is written correctly for use in PHP?

How to use lib and function in php?
Last Edit: 7 months 22 hours ago by usbdoo.

Please Log in or Create an account to join the conversation.