Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a library written in C that in turn is build upon the GMP library.
I want to know how can I use the library with PHP?
more informally, say I want to use such library with JAVA, I can simply write Java wrappers for the library.
I think php's exec or shell_exec functions can help you out ...
this functions are used for Execute an external program
take a look at this...
http://www.php.net/manual/en/function.exec.php
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
How is this possible to have an empty body for a function ?
Is this related to C/C++ (that PHP is written with ) ?
Or is it related to CGI mechanism or something like that ?
I want to know how functions work under the hood.
What if I want to add a simple function that returns "Hello world" written in C++ to PHP ?
Thanks in advance.
These are just dummy files (implemented by the IDE) that serve documentation & autocomplete purposes for the builtin functions / classes.
If you want to see how PHP works under the hood, take a look at its source code: https://github.com/php/php-src.
If you want to extend PHP with custom functions, you can write an extension in C++. There are a lot of tutorials on how to get started.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is there an way to use Operator Overloading in PHP?
I use PHP Version 7.1.
Well PHP doesn't support Operator Overloading altho I'd recommend looking at the thread bellow to read about possible similar solutions
Is it possible to overload operators in PHP?
But bare in mind, PHP's concept of overloading is no where similar to C++
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've been using PHP for some basics Back-End development for a while now. I saw something about interpretations of variables while I was looking for some changes which came with PHP 7. I'm not using them and it would be great if someone can explain why to use them?
What I mean is:
What are the pros of using them?
You use variable interpretation in situations when you need to dynamically reference a variable and don't want to use an array. Generally I would not recommend using it, as you lose benefits such as static code analysis.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I wrote web service which will generate label from certain parameters and will return it as PDF. Now I must improve it by returning generated label as PDF or ZPL format.
Unfortunately, I have zero knowledge on working with ZPL. What is ZPL? Is it some kind of file format? What is used for? How its generated? Any open-source PHP libraries for it?
It would be nice if someone would provide some whitepapers or some kind of reference about ZPL.
Web service is written in PHP.
I think you are looking for this information:
https://en.wikipedia.org/wiki/Zebra_(programming_language)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How can i list the all functions i used in my site using php?I used a lot of php functions in my site.If there is any php function to check which functions are used in my site?
Check out doxygen. By running those scripts you will be able to list all functions and classes, and it links them so you can see the usage:
http://www.doxygen.nl/
You can look into running a phpxref on your codebase.
Example of function documentation output