How to make values of fields of newly created node available in Rules I have a rule which is triggered upon Event: 'After saving new content'. 

My Action involves executing custom php code. Please how can i make the values of the fields of my new node available in my php code.

Thanks.
You can use fields of node currently being added in two ways


Check down the PHP code text field you will find text saying



  "The following variables are available and may be used by your PHP
  code:". Inside this you will get some site variables as $site and node variables as $node.


As per requirement you need fields of current added node so $node is the reference for current added node and also contains the fields you need.
Find the screen shot to see how it can be used,as in the example I am using drupal_set_message to show the title of current added node or with first code of line it is simple dpm($node), which will show you complete insight of node once this rule is saved and devel module is installed.



Other way is to use tokens replacement options.


Under replacement patterns you will see "Replacement patterns for saved content". This list provides current node fields as toke replacement.
Check the screen shot.

For example usage,if you want to show node title using tokens in rules simply add this code

`drupal_set_message(token_replace('[node:title]', array('node' =&gt; $node)));` in the php code.


here in the following screen-shot is a code comparison for the above two ways, you can use any.I usually prefer using $node.