i have a variable $page that is storing code similar to this

PHP Code:
onloadRegister(function (){Quickling.init("329319;0"10, {"page_cache":1,"quickling_init_page":false,"flush_cache_in_transition":1,"flush_cache_in_page_write":0});});
onloadRegister(function (){JSCC.init({"j4d235b8b8399023097431421":function(){return new AsyncLayout();}}, false);});
onloadRegister(function (){JSCC.init({"j4d235b8b8399023097431422":function(){return new SearchDataSource({"maxResults":8,"queryData":{"viewer":100000503667042},"queryEndpoint":"\/ajax\/typeahead\/search.php","bootstrapData":{"viewer":100000503667042,"token":"1294162702-5","lfe":1},"bootstrapEndpoint":"\/ajax\/typeahead\/first_degree.php"});},"j4d235b8b8399023097431423":function(){return new Typeahead(JSCC.get('j4d235b8b8399023097431422'), {node: $("u282757_1"), ctor"SearchTypeaheadView"options: {"autoSelect":true,"renderer":"search"}}, {node: $("q"), ctor"SearchTypeaheadCore"options: {"keepFocused":false,"resetOnSelect":true}}, $("u282757_2"))}}, false);});
onloadRegister(function (){window.__UIControllerRegistry["c4d235b8b883d27291189921"] = new UIPagelet("c4d235b8b883d27291189921""\/pagelet\/profile\/tux_toolbar.php", {"profile_id":100000503667042,"sk":"wall"}, {});; ;});
onloadRegister(function (){ft.enableFeedTracking();});
onloadRegister(function (){JSCC.get('j4d235b8b8399023097431421').init($("contentArea"), $('rightCol'), $('headerArea'), $('toolbarContainer'));});
onloadRegister(function (){window.loading_page_chrome true;}); 
PHP Code:
$page curl_exec($curl_handle);
    
 
 
$d json_decode($page);
 
$profileid $d['profile_id'];  
 
 
htmlOut("kevins profile id = ".$profileid);

function 
htmlOut($var){
  echo 
"<hr /><b>".$var."</b><hr />";

This is what i have but its not isolating the profile id

does anybody know how i can do this please

the id im looking for is 100000503667042

thanks for any help provided.