Sample Call

<?php
// SOAP_CLIENT_BASEDIR - folder that contains the PHP Toolkit and your WSDL
// $USERNAME - variable that contains your Salesforce.com username (must be in the form of an email)
// $PASSWORD - variable that contains your Salesforce.ocm password

define("SOAP_CLIENT_BASEDIR", "../../soapclient");
require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');

try {
  $mySforceConnection = new SforceEnterpriseClient();
  $mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
  $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
  
  print_r($mySforceConnection->describeLayout('Task'));

} catch (Exception $e) {
  echo $mySforceConnection->getLastRequest();
  echo $e->faultstring;
}
?>

Sample Output

stdClass Object
(
    [layouts] => stdClass Object
        (
            [detailLayoutSections] => Array
                (
                    [0] => stdClass Object
                        (
                            [columns] => 2
                            [heading] => Task Information
                            [layoutRows] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Assigned To
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 1
                                                                    [type] => Field
                                                                    [value] => OwnerId
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Status
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 6
                                                                    [type] => Field
                                                                    [value] => Status
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [1] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Subject
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 2
                                                                    [type] => Field
                                                                    [value] => Subject
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Name
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 7
                                                                    [type] => Field
                                                                    [value] => WhoId
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [2] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Due Date
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 3
                                                                    [type] => Field
                                                                    [value] => ActivityDate
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Related To
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 8
                                                                    [type] => Field
                                                                    [value] => WhatId
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [3] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Phone
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 4
                                                                    [type] => Field
                                                                    [value] => Phone
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Email
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 9
                                                                    [type] => Field
                                                                    [value] => Email
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [4] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Priority
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 5
                                                                    [type] => Field
                                                                    [value] => Priority
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => 
                                                            [placeholder] => 1
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                )

                            [rows] => 5
                            [useCollapsibleSection] => 
                            [useHeading] => 
                        )

                    [1] => stdClass Object
                        (
                            [columns] => 2
                            [heading] => System Information
                            [layoutRows] => stdClass Object
                                (
                                    [layoutItems] => Array
                                        (
                                            [0] => stdClass Object
                                                (
                                                    [editable] => 
                                                    [label] => Created By
                                                    [layoutComponents] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 19
                                                                    [type] => Field
                                                                    [value] => CreatedById
                                                                )

                                                            [1] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 20
                                                                    [type] => Separator
                                                                    [value] => ,
                                                                )

                                                            [2] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 21
                                                                    [type] => Field
                                                                    [value] => CreatedDate
                                                                )

                                                        )

                                                    [placeholder] => 
                                                    [required] => 
                                                )

                                            [1] => stdClass Object
                                                (
                                                    [editable] => 
                                                    [label] => Last Modified By
                                                    [layoutComponents] => Array
                                                        (
                                                            [0] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 22
                                                                    [type] => Field
                                                                    [value] => LastModifiedById
                                                                )

                                                            [1] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 23
                                                                    [type] => Separator
                                                                    [value] => ,
                                                                )

                                                            [2] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 24
                                                                    [type] => Field
                                                                    [value] => LastModifiedDate
                                                                )

                                                        )

                                                    [placeholder] => 
                                                    [required] => 
                                                )

                                        )

                                    [numItems] => 2
                                )

                            [rows] => 1
                            [useCollapsibleSection] => 
                            [useHeading] => 
                        )

                    [2] => stdClass Object
                        (
                            [columns] => 1
                            [heading] => Description Information
                            [layoutRows] => stdClass Object
                                (
                                    [layoutItems] => stdClass Object
                                        (
                                            [editable] => 
                                            [label] => Comments
                                            [layoutComponents] => stdClass Object
                                                (
                                                    [displayLines] => 4
                                                    [tabOrder] => 25
                                                    [type] => Field
                                                    [value] => Description
                                                )

                                            [placeholder] => 
                                            [required] => 
                                        )

                                    [numItems] => 1
                                )

                            [rows] => 1
                            [useCollapsibleSection] => 
                            [useHeading] => 
                        )

                )

            [editLayoutSections] => Array
                (
                    [0] => stdClass Object
                        (
                            [columns] => 2
                            [heading] => Task Information
                            [layoutRows] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Assigned To
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 10
                                                                    [type] => Field
                                                                    [value] => OwnerId
                                                                )

                                                            [placeholder] => 
                                                            [required] => 1
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Status
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 15
                                                                    [type] => Field
                                                                    [value] => Status
                                                                )

                                                            [placeholder] => 
                                                            [required] => 1
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [1] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Subject
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 11
                                                                    [type] => Field
                                                                    [value] => Subject
                                                                )

                                                            [placeholder] => 
                                                            [required] => 1
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Name
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 16
                                                                    [type] => Field
                                                                    [value] => WhoId
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [2] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Due Date
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 12
                                                                    [type] => Field
                                                                    [value] => ActivityDate
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Related To
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 17
                                                                    [type] => Field
                                                                    [value] => WhatId
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [3] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Phone
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 13
                                                                    [type] => Field
                                                                    [value] => Phone
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => Email
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 18
                                                                    [type] => Field
                                                                    [value] => Email
                                                                )

                                                            [placeholder] => 
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                    [4] => stdClass Object
                                        (
                                            [layoutItems] => Array
                                                (
                                                    [0] => stdClass Object
                                                        (
                                                            [editable] => 1
                                                            [label] => Priority
                                                            [layoutComponents] => stdClass Object
                                                                (
                                                                    [displayLines] => 1
                                                                    [tabOrder] => 14
                                                                    [type] => Field
                                                                    [value] => Priority
                                                                )

                                                            [placeholder] => 
                                                            [required] => 1
                                                        )

                                                    [1] => stdClass Object
                                                        (
                                                            [editable] => 
                                                            [label] => 
                                                            [placeholder] => 1
                                                            [required] => 
                                                        )

                                                )

                                            [numItems] => 2
                                        )

                                )

                            [rows] => 5
                            [useCollapsibleSection] => 
                            [useHeading] => 1
                        )

                    [1] => stdClass Object
                        (
                            [columns] => 1
                            [heading] => Description Information
                            [layoutRows] => stdClass Object
                                (
                                    [layoutItems] => stdClass Object
                                        (
                                            [editable] => 1
                                            [label] => Comments
                                            [layoutComponents] => stdClass Object
                                                (
                                                    [displayLines] => 4
                                                    [tabOrder] => 26
                                                    [type] => Field
                                                    [value] => Description
                                                )

                                            [placeholder] => 
                                            [required] => 
                                        )

                                    [numItems] => 1
                                )

                            [rows] => 1
                            [useCollapsibleSection] => 
                            [useHeading] => 1
                        )

                )

            [id] => 00h300000011KEWAA2
        )

    [recordTypeMappings] => stdClass Object
        (
            [available] => 1
            [defaultRecordTypeMapping] => 1
            [layoutId] => 00h300000011KEWAA2
            [name] => Master
            [picklistsForRecordType] => Array
                (
                    [0] => stdClass Object
                        (
                            [picklistName] => Subject
                            [picklistValues] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Call
                                            [value] => Call
                                        )

                                    [1] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Email
                                            [value] => Email
                                        )

                                    [2] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Send Letter
                                            [value] => Send Letter
                                        )

                                    [3] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Send Quote
                                            [value] => Send Quote
                                        )

                                    [4] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Other
                                            [value] => Other
                                        )

                                )

                        )

                    [1] => stdClass Object
                        (
                            [picklistName] => Status
                            [picklistValues] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 1
                                            [label] => Not Started
                                            [value] => Not Started
                                        )

                                    [1] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => In Progress
                                            [value] => In Progress
                                        )

                                    [2] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Completed
                                            [value] => Completed
                                        )

                                    [3] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Waiting on someone else
                                            [value] => Waiting on someone else
                                        )

                                    [4] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Deferred
                                            [value] => Deferred
                                        )

                                )

                        )

                    [2] => stdClass Object
                        (
                            [picklistName] => Priority
                            [picklistValues] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => High
                                            [value] => High
                                        )

                                    [1] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 1
                                            [label] => Normal
                                            [value] => Normal
                                        )

                                    [2] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Low
                                            [value] => Low
                                        )

                                )

                        )

                    [3] => stdClass Object
                        (
                            [picklistName] => Type
                            [picklistValues] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Call
                                            [value] => Call
                                        )

                                    [1] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Meeting
                                            [value] => Meeting
                                        )

                                    [2] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Other
                                            [value] => Other
                                        )

                                )

                        )

                    [4] => stdClass Object
                        (
                            [picklistName] => CallType
                            [picklistValues] => Array
                                (
                                    [0] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Internal
                                            [value] => Internal
                                        )

                                    [1] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Inbound
                                            [value] => Inbound
                                        )

                                    [2] => stdClass Object
                                        (
                                            [active] => 1
                                            [defaultValue] => 
                                            [label] => Outbound
                                            [value] => Outbound
                                        )

                                )

                        )

                )

            [recordTypeId] => 012000000000000AAA
        )

    [recordTypeSelectorRequired] => 
)