PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi all,
can somebody give me a helping hand here, please?
I have the following C code and I am not able to convert this to PHP
[syntax="c"]
#include <stdio.h>
int main()
{
const int DC1 = 0x11;
const int ESC = 0x1b;
int BCC;
//BCC = (DC1,0x07+ESC+'G'+'R'+0+0+100+100);//%256;
BCC = (DC1+0x07+ESC+'G'+'R'+0+0+100+100);
printf("%d\n", BCC);
// printf("%d\n", BCC%256);
// return -1;
}
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]