You are here:

PHP6/PHP variables into C variables

Advertisement


Question
Is there an easy way of defining/changing php variables into C? What I want to do is lessen the load. Possible to use int and char in php?

Answer
Well, there is no direct way of doing it. PHP does that automatically. It detects the type of variable by the value its initialised with and takes care of memory management itself.

Please read http://www.php.net/manual/en/language.types.intro.php

Also, here is how facebook takes care of the PHP scaling issue

http://en.wikipedia.org/wiki/HipHop_for_PHP

PHP6

All Answers


Answers by Expert:


Ask Experts

Volunteer


Fahd Murtaza

Expertise

I can answer everything PHP.

Experience

10 years of web development with over 5 years with PHP.

Organizations
R&D Muscat Oman. Reality CG Oman www.realitycg.com Universal Coders www.universalcoders.com

Education/Credentials
Bachelors in Computer engineering from COMSATS Institute of Information Technology (now COMSATS University)

©2016 About.com. All rights reserved.