constants

PHP: Problem with constant/pagetitle and facebook like-button

Hello everyone I'm using constants to display my page titles in different languages: // lang.en.php define(_PAGE_TITLE, "Pagetitle"); // lang.de.php define(_PAGE_TITLE, "Seitentitel"); I've placed a facebook like button on that page and everything works except for one thing: If I submit the link using the like button, the title ...

C++ "const" keyword explanation

When reading tutorials and code written in C++, I often stumble over the const keyword. I see that it is used like the following: const int x = 5; I know that this means that x is a constant variable and probably stored in read-only memory. But what are void myfunc( const char x ); and int myfunc( ) const; ? ...