If i set a cookie in PHP with the setcookie() function, can i access that with javascript cookie api, in other words are the php and javascript cookie access interchangeable?
A cookie is a cookie, unless it is specified to be HTTP only.
Cookies are entirely independent of PHP and Javascript; they're just a client-side storage mechanism. So yes.